R-Type
Distributed multiplayer game engine in C++
Loading...
Searching...
No Matches
IPacket.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <vector>
Include dependency graph for IPacket.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IPacket
 Interface representing a network packet. More...
 

Enumerations

enum class  PacketFlag : uint32_t {
  RELIABLE = 1 << 0 , UNSEQUENCED = 1 << 1 , NO_ALLOCATE = 1 << 2 , UNRELIABLE_FRAGMENT = 1 << 3 ,
  SENT = 1 << 8
}
 Flags that control packet behavior and delivery guarantees. More...
 

Enumeration Type Documentation

◆ PacketFlag

enum class PacketFlag : uint32_t
strong

Flags that control packet behavior and delivery guarantees.

Enumerator
RELIABLE 

Packet must be received by the target peer and resent if dropped.

UNSEQUENCED 

Packet will not be sequenced with other packets.

NO_ALLOCATE 

Packet will not allocate data, and user must supply it.

UNRELIABLE_FRAGMENT 

Packet will be fragmented using unreliable (default) sends.

SENT 

Flag indicating packet has been sent from peer.

Definition at line 18 of file IPacket.hpp.