Orxonox  0.0.5 Codename: Arcturus
protocol.h
Go to the documentation of this file.
1 
5 #ifndef __ENET_PROTOCOL_H__
6 #define __ENET_PROTOCOL_H__
7 
8 #include "enet/types.h"
9 
10 enum
11 {
20 };
21 
23 {
37 
40 
41 typedef enum _ENetProtocolFlag
42 {
45 
49 
53 
54 #ifdef _MSC_VER_
55 #pragma pack(push, 1)
56 #define ENET_PACKED
57 #elif defined(__GNUC__)
58 #define ENET_PACKED __attribute__ ((packed))
59 #else
60 #define ENET_PACKED
61 #endif
62 
63 typedef struct _ENetProtocolHeader
64 {
68 
70 {
75 
77 {
78  ENetProtocolCommandHeader header;
82 
83 typedef struct _ENetProtocolConnect
84 {
85  ENetProtocolCommandHeader header;
100 
102 {
103  ENetProtocolCommandHeader header;
117 
119 {
120  ENetProtocolCommandHeader header;
124 
126 {
127  ENetProtocolCommandHeader header;
132 
134 {
135  ENetProtocolCommandHeader header;
138 
139 typedef struct _ENetProtocolPing
140 {
141  ENetProtocolCommandHeader header;
143 
145 {
146  ENetProtocolCommandHeader header;
149 
151 {
152  ENetProtocolCommandHeader header;
156 
158 {
159  ENetProtocolCommandHeader header;
163 
165 {
166  ENetProtocolCommandHeader header;
174 
175 typedef union _ENetProtocol
176 {
177  ENetProtocolCommandHeader header;
178  ENetProtocolAcknowledge acknowledge;
179  ENetProtocolConnect connect;
180  ENetProtocolVerifyConnect verifyConnect;
181  ENetProtocolDisconnect disconnect;
182  ENetProtocolPing ping;
183  ENetProtocolSendReliable sendReliable;
184  ENetProtocolSendUnreliable sendUnreliable;
185  ENetProtocolSendUnsequenced sendUnsequenced;
186  ENetProtocolSendFragment sendFragment;
187  ENetProtocolBandwidthLimit bandwidthLimit;
188  ENetProtocolThrottleConfigure throttleConfigure;
190 
191 #ifdef _MSC_VER_
192 #pragma pack(pop)
193 #endif
194 
195 #endif /* __ENET_PROTOCOL_H__ */
196 
ENetProtocolDisconnect disconnect
Definition: protocol.h:181
enum _ENetProtocolCommand ENetProtocolCommand
Definition: protocol.h:139
enet_uint16 dataLength
Definition: protocol.h:168
enet_uint16 dataLength
Definition: protocol.h:154
Definition: protocol.h:50
enet_uint16 reliableSequenceNumber
Definition: protocol.h:73
enet_uint8 outgoingSessionID
Definition: protocol.h:88
type definitions for ENet
Definition: protocol.h:118
enet_uint8 incomingSessionID
Definition: protocol.h:87
enet_uint16 receivedReliableSequenceNumber
Definition: protocol.h:79
Definition: protocol.h:150
Definition: protocol.h:69
_ENetProtocolCommand
Definition: protocol.h:22
Definition: protocol.h:32
Definition: protocol.h:15
ENetProtocolCommandHeader header
Definition: protocol.h:159
Definition: protocol.h:144
struct _ENetProtocolSendFragment ENetProtocolSendFragment
struct _ENetProtocolThrottleConfigure ENetProtocolThrottleConfigure
#define ENET_PACKED
Definition: protocol.h:60
enet_uint32 mtu
Definition: protocol.h:107
ENetProtocolSendFragment sendFragment
Definition: protocol.h:186
enet_uint16 outgoingPeerID
Definition: protocol.h:104
enet_uint32 packetThrottleDeceleration
Definition: protocol.h:96
enet_uint16 peerID
Definition: protocol.h:65
ENetProtocolCommandHeader header
Definition: protocol.h:120
enet_uint32 packetThrottleDeceleration
Definition: protocol.h:130
Definition: protocol.h:36
Definition: protocol.h:16
enet_uint16 dataLength
Definition: protocol.h:147
enet_uint16 sentTime
Definition: protocol.h:66
unsigned int enet_uint32
unsigned 32-bit type
Definition: types.h:10
enet_uint32 packetThrottleInterval
Definition: protocol.h:112
enet_uint8 outgoingSessionID
Definition: protocol.h:106
enet_uint32 outgoingBandwidth
Definition: protocol.h:93
enet_uint32 incomingBandwidth
Definition: protocol.h:110
enet_uint32 packetThrottleInterval
Definition: protocol.h:128
enet_uint32 windowSize
Definition: protocol.h:108
enet_uint32 packetThrottleInterval
Definition: protocol.h:94
struct _ENetProtocolSendUnsequenced ENetProtocolSendUnsequenced
enet_uint32 data
Definition: protocol.h:98
Definition: protocol.h:133
ENetProtocolBandwidthLimit bandwidthLimit
Definition: protocol.h:187
Definition: protocol.h:13
enet_uint16 outgoingPeerID
Definition: protocol.h:86
struct _ENetProtocolAcknowledge ENetProtocolAcknowledge
Definition: protocol.h:30
enet_uint32 mtu
Definition: protocol.h:89
enet_uint32 windowSize
Definition: protocol.h:90
struct _ENetProtocolSendReliable ENetProtocolSendReliable
ENetProtocolCommandHeader header
Definition: protocol.h:135
Definition: protocol.h:27
Definition: protocol.h:24
Definition: protocol.h:164
ENetProtocolSendUnsequenced sendUnsequenced
Definition: protocol.h:185
enet_uint32 fragmentCount
Definition: protocol.h:169
enet_uint32 fragmentOffset
Definition: protocol.h:172
Definition: protocol.h:26
enet_uint32 connectID
Definition: protocol.h:115
Definition: protocol.h:63
Definition: protocol.h:47
enet_uint16 unsequencedGroup
Definition: protocol.h:160
Definition: protocol.h:83
enet_uint32 packetThrottleAcceleration
Definition: protocol.h:113
enet_uint32 incomingBandwidth
Definition: protocol.h:92
struct _ENetProtocolBandwidthLimit ENetProtocolBandwidthLimit
Definition: protocol.h:12
struct _ENetProtocolCommandHeader ENetProtocolCommandHeader
Definition: protocol.h:19
Definition: protocol.h:31
enet_uint16 dataLength
Definition: protocol.h:161
enet_uint32 packetThrottleAcceleration
Definition: protocol.h:95
unsigned short enet_uint16
unsigned 16-bit type
Definition: types.h:9
enet_uint32 outgoingBandwidth
Definition: protocol.h:122
ENetProtocolSendUnreliable sendUnreliable
Definition: protocol.h:184
struct _ENetProtocolConnect ENetProtocolConnect
enet_uint32 incomingBandwidth
Definition: protocol.h:121
ENetProtocolPing ping
Definition: protocol.h:182
struct _ENetProtocolPing ENetProtocolPing
enet_uint8 incomingSessionID
Definition: protocol.h:105
unsigned char enet_uint8
unsigned 8-bit type
Definition: types.h:8
struct _ENetProtocolDisconnect ENetProtocolDisconnect
enet_uint8 channelID
Definition: protocol.h:72
union _ENetProtocol ENetProtocol
ENetProtocolSendReliable sendReliable
Definition: protocol.h:183
ENetProtocolCommandHeader header
Definition: protocol.h:177
enet_uint32 packetThrottleAcceleration
Definition: protocol.h:129
ENetProtocolVerifyConnect verifyConnect
Definition: protocol.h:180
Definition: protocol.h:175
ENetProtocolCommandHeader header
Definition: protocol.h:85
ENetProtocolCommandHeader header
Definition: protocol.h:146
enet_uint32 data
Definition: protocol.h:136
enet_uint32 connectID
Definition: protocol.h:97
ENetProtocolThrottleConfigure throttleConfigure
Definition: protocol.h:188
Definition: protocol.h:101
Definition: protocol.h:17
ENetProtocolConnect connect
Definition: protocol.h:179
Definition: protocol.h:29
ENetProtocolCommandHeader header
Definition: protocol.h:78
enet_uint32 channelCount
Definition: protocol.h:91
enum _ENetProtocolFlag ENetProtocolFlag
enet_uint8 command
Definition: protocol.h:71
Definition: protocol.h:76
ENetProtocolAcknowledge acknowledge
Definition: protocol.h:178
ENetProtocolCommandHeader header
Definition: protocol.h:166
Definition: protocol.h:48
struct _ENetProtocolSendUnreliable ENetProtocolSendUnreliable
enet_uint32 outgoingBandwidth
Definition: protocol.h:111
Definition: protocol.h:38
Definition: protocol.h:46
enet_uint32 packetThrottleDeceleration
Definition: protocol.h:114
enet_uint32 fragmentNumber
Definition: protocol.h:170
Definition: protocol.h:125
enet_uint16 receivedSentTime
Definition: protocol.h:80
ENetProtocolCommandHeader header
Definition: protocol.h:103
enet_uint32 channelCount
Definition: protocol.h:109
Definition: protocol.h:25
Definition: protocol.h:51
enet_uint32 totalLength
Definition: protocol.h:171
ENetProtocolCommandHeader header
Definition: protocol.h:141
Definition: protocol.h:14
Definition: protocol.h:28
ENetProtocolCommandHeader header
Definition: protocol.h:127
Definition: protocol.h:157
_ENetProtocolFlag
Definition: protocol.h:41
struct _ENetProtocolVerifyConnect ENetProtocolVerifyConnect
ENetProtocolCommandHeader header
Definition: protocol.h:152
enet_uint16 unreliableSequenceNumber
Definition: protocol.h:153
Definition: protocol.h:34
enet_uint16 startSequenceNumber
Definition: protocol.h:167
struct _ENetProtocolHeader ENetProtocolHeader
Definition: protocol.h:18