/src/middleware/enet/docs/protocol_8h_source.html

https://bitbucket.org/vivkin/gam3b00bs/ · HTML · 231 lines · 230 code · 0 blank · 1 comment · 0 complexity · f568dba0e7797508dd84431ff2613510 MD5 · raw file

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <title>enet: protocol.h Source File</title>
  6. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  7. <link href="doxygen.css" rel="stylesheet" type="text/css"/>
  8. </head>
  9. <body>
  10. <!-- Generated by Doxygen 1.7.1 -->
  11. <div class="navigation" id="top">
  12. <div class="tabs">
  13. <ul class="tablist">
  14. <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
  15. <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  16. <li><a href="modules.html"><span>Modules</span></a></li>
  17. <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
  18. <li class="current"><a href="files.html"><span>Files</span></a></li>
  19. </ul>
  20. </div>
  21. <div class="tabs2">
  22. <ul class="tablist">
  23. <li><a href="files.html"><span>File&nbsp;List</span></a></li>
  24. <li><a href="globals.html"><span>Globals</span></a></li>
  25. </ul>
  26. </div>
  27. <div class="header">
  28. <div class="headertitle">
  29. <h1>protocol.h</h1> </div>
  30. </div>
  31. <div class="contents">
  32. <a href="protocol_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
  33. <a name="l00005"></a>00005 <span class="preprocessor">#ifndef __ENET_PROTOCOL_H__</span>
  34. <a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __ENET_PROTOCOL_H__</span>
  35. <a name="l00007"></a>00007 <span class="preprocessor"></span>
  36. <a name="l00008"></a>00008 <span class="preprocessor">#include &quot;<a class="code" href="types_8h.html" title="type definitions for ENet">enet/types.h</a>&quot;</span>
  37. <a name="l00009"></a>00009
  38. <a name="l00010"></a>00010 <span class="keyword">enum</span>
  39. <a name="l00011"></a>00011 {
  40. <a name="l00012"></a>00012 ENET_PROTOCOL_MINIMUM_MTU = 576,
  41. <a name="l00013"></a>00013 ENET_PROTOCOL_MAXIMUM_MTU = 4096,
  42. <a name="l00014"></a>00014 ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS = 32,
  43. <a name="l00015"></a>00015 ENET_PROTOCOL_MINIMUM_WINDOW_SIZE = 4096,
  44. <a name="l00016"></a>00016 ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE = 32768,
  45. <a name="l00017"></a>00017 ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT = 1,
  46. <a name="l00018"></a>00018 ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT = 255,
  47. <a name="l00019"></a>00019 ENET_PROTOCOL_MAXIMUM_PEER_ID = 0xFFF
  48. <a name="l00020"></a>00020 };
  49. <a name="l00021"></a>00021
  50. <a name="l00022"></a>00022 <span class="keyword">typedef</span> <span class="keyword">enum</span> _ENetProtocolCommand
  51. <a name="l00023"></a>00023 {
  52. <a name="l00024"></a>00024 ENET_PROTOCOL_COMMAND_NONE = 0,
  53. <a name="l00025"></a>00025 ENET_PROTOCOL_COMMAND_ACKNOWLEDGE = 1,
  54. <a name="l00026"></a>00026 ENET_PROTOCOL_COMMAND_CONNECT = 2,
  55. <a name="l00027"></a>00027 ENET_PROTOCOL_COMMAND_VERIFY_CONNECT = 3,
  56. <a name="l00028"></a>00028 ENET_PROTOCOL_COMMAND_DISCONNECT = 4,
  57. <a name="l00029"></a>00029 ENET_PROTOCOL_COMMAND_PING = 5,
  58. <a name="l00030"></a>00030 ENET_PROTOCOL_COMMAND_SEND_RELIABLE = 6,
  59. <a name="l00031"></a>00031 ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE = 7,
  60. <a name="l00032"></a>00032 ENET_PROTOCOL_COMMAND_SEND_FRAGMENT = 8,
  61. <a name="l00033"></a>00033 ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED = 9,
  62. <a name="l00034"></a>00034 ENET_PROTOCOL_COMMAND_BANDWIDTH_LIMIT = 10,
  63. <a name="l00035"></a>00035 ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE = 11,
  64. <a name="l00036"></a>00036 ENET_PROTOCOL_COMMAND_COUNT = 12,
  65. <a name="l00037"></a>00037
  66. <a name="l00038"></a>00038 ENET_PROTOCOL_COMMAND_MASK = 0x0F
  67. <a name="l00039"></a>00039 } ENetProtocolCommand;
  68. <a name="l00040"></a>00040
  69. <a name="l00041"></a>00041 <span class="keyword">typedef</span> <span class="keyword">enum</span> _ENetProtocolFlag
  70. <a name="l00042"></a>00042 {
  71. <a name="l00043"></a>00043 ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE = (1 &lt;&lt; 7),
  72. <a name="l00044"></a>00044 ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED = (1 &lt;&lt; 6),
  73. <a name="l00045"></a>00045
  74. <a name="l00046"></a>00046 ENET_PROTOCOL_HEADER_FLAG_COMPRESSED = (1 &lt;&lt; 14),
  75. <a name="l00047"></a>00047 ENET_PROTOCOL_HEADER_FLAG_SENT_TIME = (1 &lt;&lt; 15),
  76. <a name="l00048"></a>00048 ENET_PROTOCOL_HEADER_FLAG_MASK = ENET_PROTOCOL_HEADER_FLAG_COMPRESSED | ENET_PROTOCOL_HEADER_FLAG_SENT_TIME,
  77. <a name="l00049"></a>00049
  78. <a name="l00050"></a>00050 ENET_PROTOCOL_HEADER_SESSION_MASK = (3 &lt;&lt; 12),
  79. <a name="l00051"></a>00051 ENET_PROTOCOL_HEADER_SESSION_SHIFT = 12
  80. <a name="l00052"></a>00052 } ENetProtocolFlag;
  81. <a name="l00053"></a>00053
  82. <a name="l00054"></a>00054 <span class="preprocessor">#ifdef _MSC_VER_</span>
  83. <a name="l00055"></a>00055 <span class="preprocessor"></span><span class="preprocessor">#pragma pack(push, 1)</span>
  84. <a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#define ENET_PACKED</span>
  85. <a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#elif defined(__GNUC__)</span>
  86. <a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor">#define ENET_PACKED __attribute__ ((packed))</span>
  87. <a name="l00059"></a>00059 <span class="preprocessor"></span><span class="preprocessor">#else</span>
  88. <a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor">#define ENET_PACKED</span>
  89. <a name="l00061"></a>00061 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
  90. <a name="l00062"></a>00062 <span class="preprocessor"></span>
  91. <a name="l00063"></a><a class="code" href="struct__ENetProtocolHeader.html">00063</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolHeader.html">_ENetProtocolHeader</a>
  92. <a name="l00064"></a>00064 {
  93. <a name="l00065"></a>00065 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> peerID;
  94. <a name="l00066"></a>00066 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> sentTime;
  95. <a name="l00067"></a>00067 } ENET_PACKED <a class="code" href="struct__ENetProtocolHeader.html">ENetProtocolHeader</a>;
  96. <a name="l00068"></a>00068
  97. <a name="l00069"></a><a class="code" href="struct__ENetProtocolCommandHeader.html">00069</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolCommandHeader.html">_ENetProtocolCommandHeader</a>
  98. <a name="l00070"></a>00070 {
  99. <a name="l00071"></a>00071 <a class="code" href="types_8h.html#a34ce80c65abc6389fe0121a83d757f07" title="unsigned 8-bit type">enet_uint8</a> command;
  100. <a name="l00072"></a>00072 <a class="code" href="types_8h.html#a34ce80c65abc6389fe0121a83d757f07" title="unsigned 8-bit type">enet_uint8</a> channelID;
  101. <a name="l00073"></a>00073 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> reliableSequenceNumber;
  102. <a name="l00074"></a>00074 } ENET_PACKED <a class="code" href="struct__ENetProtocolCommandHeader.html">ENetProtocolCommandHeader</a>;
  103. <a name="l00075"></a>00075
  104. <a name="l00076"></a><a class="code" href="struct__ENetProtocolAcknowledge.html">00076</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolAcknowledge.html">_ENetProtocolAcknowledge</a>
  105. <a name="l00077"></a>00077 {
  106. <a name="l00078"></a>00078 ENetProtocolCommandHeader header;
  107. <a name="l00079"></a>00079 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> receivedReliableSequenceNumber;
  108. <a name="l00080"></a>00080 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> receivedSentTime;
  109. <a name="l00081"></a>00081 } ENET_PACKED <a class="code" href="struct__ENetProtocolAcknowledge.html">ENetProtocolAcknowledge</a>;
  110. <a name="l00082"></a>00082
  111. <a name="l00083"></a><a class="code" href="struct__ENetProtocolConnect.html">00083</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolConnect.html">_ENetProtocolConnect</a>
  112. <a name="l00084"></a>00084 {
  113. <a name="l00085"></a>00085 ENetProtocolCommandHeader header;
  114. <a name="l00086"></a>00086 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> outgoingPeerID;
  115. <a name="l00087"></a>00087 <a class="code" href="types_8h.html#a34ce80c65abc6389fe0121a83d757f07" title="unsigned 8-bit type">enet_uint8</a> incomingSessionID;
  116. <a name="l00088"></a>00088 <a class="code" href="types_8h.html#a34ce80c65abc6389fe0121a83d757f07" title="unsigned 8-bit type">enet_uint8</a> outgoingSessionID;
  117. <a name="l00089"></a>00089 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> mtu;
  118. <a name="l00090"></a>00090 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> windowSize;
  119. <a name="l00091"></a>00091 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> channelCount;
  120. <a name="l00092"></a>00092 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> incomingBandwidth;
  121. <a name="l00093"></a>00093 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> outgoingBandwidth;
  122. <a name="l00094"></a>00094 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> packetThrottleInterval;
  123. <a name="l00095"></a>00095 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> packetThrottleAcceleration;
  124. <a name="l00096"></a>00096 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> packetThrottleDeceleration;
  125. <a name="l00097"></a>00097 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> connectID;
  126. <a name="l00098"></a>00098 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> data;
  127. <a name="l00099"></a>00099 } ENET_PACKED <a class="code" href="struct__ENetProtocolConnect.html">ENetProtocolConnect</a>;
  128. <a name="l00100"></a>00100
  129. <a name="l00101"></a><a class="code" href="struct__ENetProtocolVerifyConnect.html">00101</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolVerifyConnect.html">_ENetProtocolVerifyConnect</a>
  130. <a name="l00102"></a>00102 {
  131. <a name="l00103"></a>00103 ENetProtocolCommandHeader header;
  132. <a name="l00104"></a>00104 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> outgoingPeerID;
  133. <a name="l00105"></a>00105 <a class="code" href="types_8h.html#a34ce80c65abc6389fe0121a83d757f07" title="unsigned 8-bit type">enet_uint8</a> incomingSessionID;
  134. <a name="l00106"></a>00106 <a class="code" href="types_8h.html#a34ce80c65abc6389fe0121a83d757f07" title="unsigned 8-bit type">enet_uint8</a> outgoingSessionID;
  135. <a name="l00107"></a>00107 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> mtu;
  136. <a name="l00108"></a>00108 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> windowSize;
  137. <a name="l00109"></a>00109 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> channelCount;
  138. <a name="l00110"></a>00110 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> incomingBandwidth;
  139. <a name="l00111"></a>00111 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> outgoingBandwidth;
  140. <a name="l00112"></a>00112 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> packetThrottleInterval;
  141. <a name="l00113"></a>00113 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> packetThrottleAcceleration;
  142. <a name="l00114"></a>00114 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> packetThrottleDeceleration;
  143. <a name="l00115"></a>00115 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> connectID;
  144. <a name="l00116"></a>00116 } ENET_PACKED <a class="code" href="struct__ENetProtocolVerifyConnect.html">ENetProtocolVerifyConnect</a>;
  145. <a name="l00117"></a>00117
  146. <a name="l00118"></a><a class="code" href="struct__ENetProtocolBandwidthLimit.html">00118</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolBandwidthLimit.html">_ENetProtocolBandwidthLimit</a>
  147. <a name="l00119"></a>00119 {
  148. <a name="l00120"></a>00120 ENetProtocolCommandHeader header;
  149. <a name="l00121"></a>00121 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> incomingBandwidth;
  150. <a name="l00122"></a>00122 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> outgoingBandwidth;
  151. <a name="l00123"></a>00123 } ENET_PACKED <a class="code" href="struct__ENetProtocolBandwidthLimit.html">ENetProtocolBandwidthLimit</a>;
  152. <a name="l00124"></a>00124
  153. <a name="l00125"></a><a class="code" href="struct__ENetProtocolThrottleConfigure.html">00125</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolThrottleConfigure.html">_ENetProtocolThrottleConfigure</a>
  154. <a name="l00126"></a>00126 {
  155. <a name="l00127"></a>00127 ENetProtocolCommandHeader header;
  156. <a name="l00128"></a>00128 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> packetThrottleInterval;
  157. <a name="l00129"></a>00129 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> packetThrottleAcceleration;
  158. <a name="l00130"></a>00130 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> packetThrottleDeceleration;
  159. <a name="l00131"></a>00131 } ENET_PACKED <a class="code" href="struct__ENetProtocolThrottleConfigure.html">ENetProtocolThrottleConfigure</a>;
  160. <a name="l00132"></a>00132
  161. <a name="l00133"></a><a class="code" href="struct__ENetProtocolDisconnect.html">00133</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolDisconnect.html">_ENetProtocolDisconnect</a>
  162. <a name="l00134"></a>00134 {
  163. <a name="l00135"></a>00135 ENetProtocolCommandHeader header;
  164. <a name="l00136"></a>00136 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> data;
  165. <a name="l00137"></a>00137 } ENET_PACKED <a class="code" href="struct__ENetProtocolDisconnect.html">ENetProtocolDisconnect</a>;
  166. <a name="l00138"></a>00138
  167. <a name="l00139"></a><a class="code" href="struct__ENetProtocolPing.html">00139</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolPing.html">_ENetProtocolPing</a>
  168. <a name="l00140"></a>00140 {
  169. <a name="l00141"></a>00141 ENetProtocolCommandHeader header;
  170. <a name="l00142"></a>00142 } ENET_PACKED <a class="code" href="struct__ENetProtocolPing.html">ENetProtocolPing</a>;
  171. <a name="l00143"></a>00143
  172. <a name="l00144"></a><a class="code" href="struct__ENetProtocolSendReliable.html">00144</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolSendReliable.html">_ENetProtocolSendReliable</a>
  173. <a name="l00145"></a>00145 {
  174. <a name="l00146"></a>00146 ENetProtocolCommandHeader header;
  175. <a name="l00147"></a>00147 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> dataLength;
  176. <a name="l00148"></a>00148 } ENET_PACKED <a class="code" href="struct__ENetProtocolSendReliable.html">ENetProtocolSendReliable</a>;
  177. <a name="l00149"></a>00149
  178. <a name="l00150"></a><a class="code" href="struct__ENetProtocolSendUnreliable.html">00150</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolSendUnreliable.html">_ENetProtocolSendUnreliable</a>
  179. <a name="l00151"></a>00151 {
  180. <a name="l00152"></a>00152 ENetProtocolCommandHeader header;
  181. <a name="l00153"></a>00153 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> unreliableSequenceNumber;
  182. <a name="l00154"></a>00154 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> dataLength;
  183. <a name="l00155"></a>00155 } ENET_PACKED <a class="code" href="struct__ENetProtocolSendUnreliable.html">ENetProtocolSendUnreliable</a>;
  184. <a name="l00156"></a>00156
  185. <a name="l00157"></a><a class="code" href="struct__ENetProtocolSendUnsequenced.html">00157</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolSendUnsequenced.html">_ENetProtocolSendUnsequenced</a>
  186. <a name="l00158"></a>00158 {
  187. <a name="l00159"></a>00159 ENetProtocolCommandHeader header;
  188. <a name="l00160"></a>00160 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> unsequencedGroup;
  189. <a name="l00161"></a>00161 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> dataLength;
  190. <a name="l00162"></a>00162 } ENET_PACKED <a class="code" href="struct__ENetProtocolSendUnsequenced.html">ENetProtocolSendUnsequenced</a>;
  191. <a name="l00163"></a>00163
  192. <a name="l00164"></a><a class="code" href="struct__ENetProtocolSendFragment.html">00164</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetProtocolSendFragment.html">_ENetProtocolSendFragment</a>
  193. <a name="l00165"></a>00165 {
  194. <a name="l00166"></a>00166 ENetProtocolCommandHeader header;
  195. <a name="l00167"></a>00167 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> startSequenceNumber;
  196. <a name="l00168"></a>00168 <a class="code" href="types_8h.html#a245102585fdf31bdf208639ef47bec5d" title="unsigned 16-bit type">enet_uint16</a> dataLength;
  197. <a name="l00169"></a>00169 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> fragmentCount;
  198. <a name="l00170"></a>00170 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> fragmentNumber;
  199. <a name="l00171"></a>00171 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> totalLength;
  200. <a name="l00172"></a>00172 <a class="code" href="types_8h.html#a5273659ca3c664b8550452732e9e4ae3" title="unsigned 32-bit type">enet_uint32</a> fragmentOffset;
  201. <a name="l00173"></a>00173 } ENET_PACKED <a class="code" href="struct__ENetProtocolSendFragment.html">ENetProtocolSendFragment</a>;
  202. <a name="l00174"></a>00174
  203. <a name="l00175"></a><a class="code" href="union__ENetProtocol.html">00175</a> <span class="keyword">typedef</span> <span class="keyword">union </span><a class="code" href="union__ENetProtocol.html">_ENetProtocol</a>
  204. <a name="l00176"></a>00176 {
  205. <a name="l00177"></a>00177 ENetProtocolCommandHeader header;
  206. <a name="l00178"></a>00178 ENetProtocolAcknowledge acknowledge;
  207. <a name="l00179"></a>00179 ENetProtocolConnect connect;
  208. <a name="l00180"></a>00180 ENetProtocolVerifyConnect verifyConnect;
  209. <a name="l00181"></a>00181 ENetProtocolDisconnect disconnect;
  210. <a name="l00182"></a>00182 ENetProtocolPing ping;
  211. <a name="l00183"></a>00183 ENetProtocolSendReliable sendReliable;
  212. <a name="l00184"></a>00184 ENetProtocolSendUnreliable sendUnreliable;
  213. <a name="l00185"></a>00185 ENetProtocolSendUnsequenced sendUnsequenced;
  214. <a name="l00186"></a>00186 ENetProtocolSendFragment sendFragment;
  215. <a name="l00187"></a>00187 ENetProtocolBandwidthLimit bandwidthLimit;
  216. <a name="l00188"></a>00188 ENetProtocolThrottleConfigure throttleConfigure;
  217. <a name="l00189"></a>00189 } ENET_PACKED <a class="code" href="union__ENetProtocol.html">ENetProtocol</a>;
  218. <a name="l00190"></a>00190
  219. <a name="l00191"></a>00191 <span class="preprocessor">#ifdef _MSC_VER_</span>
  220. <a name="l00192"></a>00192 <span class="preprocessor"></span><span class="preprocessor">#pragma pack(pop)</span>
  221. <a name="l00193"></a>00193 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
  222. <a name="l00194"></a>00194 <span class="preprocessor"></span>
  223. <a name="l00195"></a>00195 <span class="preprocessor">#endif </span><span class="comment">/* __ENET_PROTOCOL_H__ */</span>
  224. <a name="l00196"></a>00196
  225. </pre></div></div>
  226. </div>
  227. <hr class="footer"/><address class="footer"><small>Generated on Wed Feb 9 2011 21:31:05 for enet by&nbsp;
  228. <a href="http://www.doxygen.org/index.html">
  229. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
  230. </body>
  231. </html>