enet: protocol.h File Reference

enet

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Macros | Typedefs | Enumerations
protocol.h File Reference

ENet protocol. More...

`#include "enet/types.h"`

Go to the source code of this file.

## Data Structures
struct | _ENetProtocolHeader
struct | _ENetProtocolCommandHeader
struct | _ENetProtocolAcknowledge
struct | _ENetProtocolConnect
struct | _ENetProtocolVerifyConnect
struct | _ENetProtocolBandwidthLimit
struct | _ENetProtocolThrottleConfigure
struct | _ENetProtocolDisconnect
struct | _ENetProtocolPing
struct | _ENetProtocolSendReliable
struct | _ENetProtocolSendUnreliable
struct | _ENetProtocolSendUnsequenced
struct | _ENetProtocolSendFragment
union | _ENetProtocol

## Typedefs
typedef enum _ENetProtocolCommand | ENetProtocolCommand
typedef enum _ENetProtocolFlag | ENetProtocolFlag
typedef struct _ENetProtocolHeader | ENetProtocolHeader
typedef struct _ENetProtocolCommandHeader | ENetProtocolCommandHeader
typedef struct _ENetProtocolAcknowledge | ENetProtocolAcknowledge
typedef struct _ENetProtocolConnect | ENetProtocolConnect
typedef struct _ENetProtocolVerifyConnect | ENetProtocolVerifyConnect
typedef struct _ENetProtocolBandwidthLimit | ENetProtocolBandwidthLimit
typedef struct _ENetProtocolThrottleConfigure | ENetProtocolThrottleConfigure
typedef struct _ENetProtocolDisconnect | ENetProtocolDisconnect
typedef struct _ENetProtocolPing | ENetProtocolPing
typedef struct _ENetProtocolSendReliable | ENetProtocolSendReliable
typedef struct _ENetProtocolSendUnreliable | ENetProtocolSendUnreliable
typedef struct _ENetProtocolSendUnsequenced | ENetProtocolSendUnsequenced
typedef struct _ENetProtocolSendFragment | ENetProtocolSendFragment
typedef union _ENetProtocol | ENetProtocol

## Enumerations
enum | { ENET_PROTOCOL_MINIMUM_MTU = 576, ENET_PROTOCOL_MAXIMUM_MTU = 4096, ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS = 32, ENET_PROTOCOL_MINIMUM_WINDOW_SIZE = 4096, ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE = 65536, ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT = 1, ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT = 255, ENET_PROTOCOL_MAXIMUM_PEER_ID = 0xFFF, ENET_PROTOCOL_MAXIMUM_FRAGMENT_COUNT = 1024 * 1024 }
enum | _ENetProtocolCommand { ENET_PROTOCOL_COMMAND_NONE = 0, ENET_PROTOCOL_COMMAND_ACKNOWLEDGE = 1, ENET_PROTOCOL_COMMAND_CONNECT = 2, ENET_PROTOCOL_COMMAND_VERIFY_CONNECT = 3, ENET_PROTOCOL_COMMAND_DISCONNECT = 4, ENET_PROTOCOL_COMMAND_PING = 5, ENET_PROTOCOL_COMMAND_SEND_RELIABLE = 6, ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE = 7, ENET_PROTOCOL_COMMAND_SEND_FRAGMENT = 8, ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED = 9, ENET_PROTOCOL_COMMAND_BANDWIDTH_LIMIT = 10, ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE = 11, ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT = 12, ENET_PROTOCOL_COMMAND_COUNT = 13, ENET_PROTOCOL_COMMAND_MASK = 0x0F }
enum | _ENetProtocolFlag { ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE = (1 << 7), ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED = (1 << 6), ENET_PROTOCOL_HEADER_FLAG_COMPRESSED = (1 << 14), ENET_PROTOCOL_HEADER_FLAG_SENT_TIME = (1 << 15), ENET_PROTOCOL_HEADER_FLAG_MASK = ENET_PROTOCOL_HEADER_FLAG_COMPRESSED | ENET_PROTOCOL_HEADER_FLAG_SENT_TIME, ENET_PROTOCOL_HEADER_SESSION_MASK = (3 << 12), ENET_PROTOCOL_HEADER_SESSION_SHIFT = 12 }