[13] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
---|
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
---|
| 3 | <title>enet: enet.h Source File</title> |
---|
| 4 | <link href="doxygen.css" rel="stylesheet" type="text/css"> |
---|
| 5 | <link href="tabs.css" rel="stylesheet" type="text/css"> |
---|
| 6 | </head><body> |
---|
| 7 | <!-- Generated by Doxygen 1.5.1 --> |
---|
| 8 | <div class="tabs"> |
---|
| 9 | <ul> |
---|
| 10 | <li><a href="index.html"><span>Main Page</span></a></li> |
---|
| 11 | <li><a href="modules.html"><span>Modules</span></a></li> |
---|
| 12 | <li><a href="classes.html"><span>Data Structures</span></a></li> |
---|
| 13 | <li id="current"><a href="files.html"><span>Files</span></a></li> |
---|
| 14 | <li><a href="pages.html"><span>Related Pages</span></a></li> |
---|
| 15 | </ul></div> |
---|
| 16 | <div class="tabs"> |
---|
| 17 | <ul> |
---|
| 18 | <li><a href="files.html"><span>File List</span></a></li> |
---|
| 19 | <li><a href="globals.html"><span>Globals</span></a></li> |
---|
| 20 | </ul></div> |
---|
| 21 | <h1>enet.h</h1><a href="enet_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 |
---|
| 22 | <a name="l00005"></a>00005 <span class="preprocessor">#ifndef __ENET_ENET_H__</span> |
---|
| 23 | <a name="l00006"></a>00006 <span class="preprocessor"></span><span class="preprocessor">#define __ENET_ENET_H__</span> |
---|
| 24 | <a name="l00007"></a>00007 <span class="preprocessor"></span> |
---|
| 25 | <a name="l00008"></a>00008 <span class="preprocessor">#ifdef __cplusplus</span> |
---|
| 26 | <a name="l00009"></a>00009 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> |
---|
| 27 | <a name="l00010"></a>00010 { |
---|
| 28 | <a name="l00011"></a>00011 <span class="preprocessor">#endif</span> |
---|
| 29 | <a name="l00012"></a>00012 <span class="preprocessor"></span> |
---|
| 30 | <a name="l00013"></a>00013 <span class="preprocessor">#include <stdlib.h></span> |
---|
| 31 | <a name="l00014"></a>00014 |
---|
| 32 | <a name="l00015"></a>00015 <span class="preprocessor">#ifdef WIN32</span> |
---|
| 33 | <a name="l00016"></a>00016 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="win32_8h.html">enet/win32.h</a>"</span> |
---|
| 34 | <a name="l00017"></a>00017 <span class="preprocessor">#else</span> |
---|
| 35 | <a name="l00018"></a>00018 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="unix_8h.html">enet/unix.h</a>"</span> |
---|
| 36 | <a name="l00019"></a>00019 <span class="preprocessor">#endif</span> |
---|
| 37 | <a name="l00020"></a>00020 <span class="preprocessor"></span> |
---|
| 38 | <a name="l00021"></a>00021 <span class="preprocessor">#include "<a class="code" href="types_8h.html">enet/types.h</a>"</span> |
---|
| 39 | <a name="l00022"></a>00022 <span class="preprocessor">#include "<a class="code" href="protocol_8h.html">enet/protocol.h</a>"</span> |
---|
| 40 | <a name="l00023"></a>00023 <span class="preprocessor">#include "<a class="code" href="list_8h.html">enet/list.h</a>"</span> |
---|
| 41 | <a name="l00024"></a>00024 <span class="preprocessor">#include "<a class="code" href="callbacks_8h.html">enet/callbacks.h</a>"</span> |
---|
| 42 | <a name="l00025"></a>00025 |
---|
| 43 | <a name="l00026"></a>00026 <span class="keyword">typedef</span> <span class="keyword">enum</span> |
---|
| 44 | <a name="l00027"></a>00027 { |
---|
| 45 | <a name="l00028"></a>00028 ENET_VERSION = 1 |
---|
| 46 | <a name="l00029"></a>00029 } ENetVersion; |
---|
| 47 | <a name="l00030"></a>00030 |
---|
| 48 | <a name="l00031"></a>00031 <span class="keyword">typedef</span> <span class="keyword">enum</span> |
---|
| 49 | <a name="l00032"></a>00032 { |
---|
| 50 | <a name="l00033"></a>00033 ENET_SOCKET_TYPE_STREAM = 1, |
---|
| 51 | <a name="l00034"></a>00034 ENET_SOCKET_TYPE_DATAGRAM = 2 |
---|
| 52 | <a name="l00035"></a>00035 } ENetSocketType; |
---|
| 53 | <a name="l00036"></a>00036 |
---|
| 54 | <a name="l00037"></a>00037 <span class="keyword">typedef</span> <span class="keyword">enum</span> |
---|
| 55 | <a name="l00038"></a>00038 { |
---|
| 56 | <a name="l00039"></a>00039 ENET_SOCKET_WAIT_NONE = 0, |
---|
| 57 | <a name="l00040"></a>00040 ENET_SOCKET_WAIT_SEND = (1 << 0), |
---|
| 58 | <a name="l00041"></a>00041 ENET_SOCKET_WAIT_RECEIVE = (1 << 1) |
---|
| 59 | <a name="l00042"></a>00042 } ENetSocketWait; |
---|
| 60 | <a name="l00043"></a>00043 |
---|
| 61 | <a name="l00044"></a>00044 <span class="keyword">enum</span> |
---|
| 62 | <a name="l00045"></a>00045 { |
---|
| 63 | <a name="l00046"></a>00046 <a class="code" href="enet_8h.html#06fc87d81c62e9abb8790b6e5713c55b3d8d24eeb6e426826e88540d7c87d036">ENET_HOST_ANY</a> = 0, |
---|
| 64 | <a name="l00047"></a>00047 <a class="code" href="enet_8h.html#06fc87d81c62e9abb8790b6e5713c55bf40f3e48e3f87859c06d62023601eb57">ENET_HOST_BROADCAST</a> = 0xFFFFFFFF, |
---|
| 65 | <a name="l00049"></a><a class="code" href="enet_8h.html#06fc87d81c62e9abb8790b6e5713c55b851f798e15c7f68c29a5755ac7d7cce4">00049</a> <a class="code" href="enet_8h.html#06fc87d81c62e9abb8790b6e5713c55b851f798e15c7f68c29a5755ac7d7cce4">ENET_PORT_ANY</a> = 0 |
---|
| 66 | <a name="l00050"></a>00050 }; |
---|
| 67 | <a name="l00051"></a>00051 |
---|
| 68 | <a name="l00062"></a><a class="code" href="struct__ENetAddress.html">00062</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetAddress.html">_ENetAddress</a> |
---|
| 69 | <a name="l00063"></a>00063 { |
---|
| 70 | <a name="l00064"></a>00064 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> host; |
---|
| 71 | <a name="l00065"></a>00065 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> port; |
---|
| 72 | <a name="l00066"></a>00066 } <a class="code" href="struct__ENetAddress.html">ENetAddress</a>; |
---|
| 73 | <a name="l00067"></a>00067 |
---|
| 74 | <a name="l00077"></a><a class="code" href="enet_8h.html#38c59a481ed607b07d63b7bc3e88ca98">00077</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> |
---|
| 75 | <a name="l00078"></a>00078 { |
---|
| 76 | <a name="l00081"></a>00081 <a class="code" href="enet_8h.html#38c59a481ed607b07d63b7bc3e88ca98ab20e7088245ab2ddb7f11dcc9433738">ENET_PACKET_FLAG_RELIABLE</a> = (1 << 0), |
---|
| 77 | <a name="l00085"></a>00085 <a class="code" href="enet_8h.html#38c59a481ed607b07d63b7bc3e88ca98d230cc769ef9cc4c7c582b28f9c443fe">ENET_PACKET_FLAG_UNSEQUENCED</a> = (1 << 1), |
---|
| 78 | <a name="l00087"></a>00087 <a class="code" href="enet_8h.html#38c59a481ed607b07d63b7bc3e88ca98a6ce462752c36aad22e68ebefac3df8c">ENET_PACKET_FLAG_NO_ALLOCATE</a> = (1 << 2) |
---|
| 79 | <a name="l00088"></a>00088 } <a class="code" href="enet_8h.html#38c59a481ed607b07d63b7bc3e88ca98">ENetPacketFlag</a>; |
---|
| 80 | <a name="l00089"></a>00089 |
---|
| 81 | <a name="l00090"></a>00090 <span class="keyword">struct </span><a class="code" href="struct__ENetPacket.html">_ENetPacket</a>; |
---|
| 82 | <a name="l00091"></a>00091 <span class="keyword">typedef</span> void (ENET_CALLBACK * ENetPacketFreeCallback) (<span class="keyword">struct </span><a class="code" href="struct__ENetPacket.html">_ENetPacket</a> *); |
---|
| 83 | <a name="l00092"></a>00092 |
---|
| 84 | <a name="l00112"></a><a class="code" href="struct__ENetPacket.html">00112</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetPacket.html">_ENetPacket</a> |
---|
| 85 | <a name="l00113"></a>00113 { |
---|
| 86 | <a name="l00114"></a><a class="code" href="struct__ENetPacket.html#d951d74263f23a529bbd57bf2316d950">00114</a> size_t <a class="code" href="struct__ENetPacket.html#d951d74263f23a529bbd57bf2316d950">referenceCount</a>; |
---|
| 87 | <a name="l00115"></a><a class="code" href="struct__ENetPacket.html#bfdabe5885bc9695e2dabced27d5447a">00115</a> <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> <a class="code" href="struct__ENetPacket.html#bfdabe5885bc9695e2dabced27d5447a">flags</a>; |
---|
| 88 | <a name="l00116"></a><a class="code" href="struct__ENetPacket.html#a8b428cfa2c7a5ae9efbace5e1bded32">00116</a> <a class="code" href="types_8h.html#34ce80c65abc6389fe0121a83d757f07">enet_uint8</a> * <a class="code" href="struct__ENetPacket.html#a8b428cfa2c7a5ae9efbace5e1bded32">data</a>; |
---|
| 89 | <a name="l00117"></a><a class="code" href="struct__ENetPacket.html#1ba82e9b63e4d64fc06dcf113bb0ac77">00117</a> size_t <a class="code" href="struct__ENetPacket.html#1ba82e9b63e4d64fc06dcf113bb0ac77">dataLength</a>; |
---|
| 90 | <a name="l00118"></a><a class="code" href="struct__ENetPacket.html#a06949fd22cef654c7ef07b8d4865a9f">00118</a> ENetPacketFreeCallback <a class="code" href="struct__ENetPacket.html#a06949fd22cef654c7ef07b8d4865a9f">freeCallback</a>; |
---|
| 91 | <a name="l00119"></a>00119 } <a class="code" href="struct__ENetPacket.html">ENetPacket</a>; |
---|
| 92 | <a name="l00120"></a>00120 |
---|
| 93 | <a name="l00121"></a>00121 <span class="keyword">typedef</span> <span class="keyword">struct </span>_ENetAcknowledgement |
---|
| 94 | <a name="l00122"></a>00122 { |
---|
| 95 | <a name="l00123"></a>00123 ENetListNode acknowledgementList; |
---|
| 96 | <a name="l00124"></a>00124 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> sentTime; |
---|
| 97 | <a name="l00125"></a>00125 ENetProtocol command; |
---|
| 98 | <a name="l00126"></a>00126 } ENetAcknowledgement; |
---|
| 99 | <a name="l00127"></a>00127 |
---|
| 100 | <a name="l00128"></a>00128 <span class="keyword">typedef</span> <span class="keyword">struct </span>_ENetOutgoingCommand |
---|
| 101 | <a name="l00129"></a>00129 { |
---|
| 102 | <a name="l00130"></a>00130 ENetListNode outgoingCommandList; |
---|
| 103 | <a name="l00131"></a>00131 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> reliableSequenceNumber; |
---|
| 104 | <a name="l00132"></a>00132 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> unreliableSequenceNumber; |
---|
| 105 | <a name="l00133"></a>00133 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> sentTime; |
---|
| 106 | <a name="l00134"></a>00134 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> roundTripTimeout; |
---|
| 107 | <a name="l00135"></a>00135 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> roundTripTimeoutLimit; |
---|
| 108 | <a name="l00136"></a>00136 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> fragmentOffset; |
---|
| 109 | <a name="l00137"></a>00137 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> fragmentLength; |
---|
| 110 | <a name="l00138"></a>00138 ENetProtocol command; |
---|
| 111 | <a name="l00139"></a>00139 <a class="code" href="struct__ENetPacket.html">ENetPacket</a> * packet; |
---|
| 112 | <a name="l00140"></a>00140 } ENetOutgoingCommand; |
---|
| 113 | <a name="l00141"></a>00141 |
---|
| 114 | <a name="l00142"></a>00142 <span class="keyword">typedef</span> <span class="keyword">struct </span>_ENetIncomingCommand |
---|
| 115 | <a name="l00143"></a>00143 { |
---|
| 116 | <a name="l00144"></a>00144 ENetListNode incomingCommandList; |
---|
| 117 | <a name="l00145"></a>00145 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> reliableSequenceNumber; |
---|
| 118 | <a name="l00146"></a>00146 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> unreliableSequenceNumber; |
---|
| 119 | <a name="l00147"></a>00147 ENetProtocol command; |
---|
| 120 | <a name="l00148"></a>00148 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> fragmentCount; |
---|
| 121 | <a name="l00149"></a>00149 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> fragmentsRemaining; |
---|
| 122 | <a name="l00150"></a>00150 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> * fragments; |
---|
| 123 | <a name="l00151"></a>00151 <a class="code" href="struct__ENetPacket.html">ENetPacket</a> * packet; |
---|
| 124 | <a name="l00152"></a>00152 } ENetIncomingCommand; |
---|
| 125 | <a name="l00153"></a>00153 |
---|
| 126 | <a name="l00154"></a>00154 <span class="keyword">typedef</span> <span class="keyword">enum</span> |
---|
| 127 | <a name="l00155"></a>00155 { |
---|
| 128 | <a name="l00156"></a>00156 ENET_PEER_STATE_DISCONNECTED = 0, |
---|
| 129 | <a name="l00157"></a>00157 ENET_PEER_STATE_CONNECTING = 1, |
---|
| 130 | <a name="l00158"></a>00158 ENET_PEER_STATE_ACKNOWLEDGING_CONNECT = 2, |
---|
| 131 | <a name="l00159"></a>00159 ENET_PEER_STATE_CONNECTION_PENDING = 3, |
---|
| 132 | <a name="l00160"></a>00160 ENET_PEER_STATE_CONNECTION_SUCCEEDED = 4, |
---|
| 133 | <a name="l00161"></a>00161 ENET_PEER_STATE_CONNECTED = 5, |
---|
| 134 | <a name="l00162"></a>00162 ENET_PEER_STATE_DISCONNECT_LATER = 6, |
---|
| 135 | <a name="l00163"></a>00163 ENET_PEER_STATE_DISCONNECTING = 7, |
---|
| 136 | <a name="l00164"></a>00164 ENET_PEER_STATE_ACKNOWLEDGING_DISCONNECT = 8, |
---|
| 137 | <a name="l00165"></a>00165 ENET_PEER_STATE_ZOMBIE = 9 |
---|
| 138 | <a name="l00166"></a>00166 } ENetPeerState; |
---|
| 139 | <a name="l00167"></a>00167 |
---|
| 140 | <a name="l00168"></a>00168 <span class="preprocessor">#ifndef ENET_BUFFER_MAXIMUM</span> |
---|
| 141 | <a name="l00169"></a>00169 <span class="preprocessor"></span><span class="preprocessor">#define ENET_BUFFER_MAXIMUM (1 + 2 * ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS)</span> |
---|
| 142 | <a name="l00170"></a>00170 <span class="preprocessor"></span><span class="preprocessor">#endif</span> |
---|
| 143 | <a name="l00171"></a>00171 <span class="preprocessor"></span> |
---|
| 144 | <a name="l00172"></a>00172 <span class="keyword">enum</span> |
---|
| 145 | <a name="l00173"></a>00173 { |
---|
| 146 | <a name="l00174"></a>00174 ENET_HOST_RECEIVE_BUFFER_SIZE = 256 * 1024, |
---|
| 147 | <a name="l00175"></a>00175 ENET_HOST_SEND_BUFFER_SIZE = 256 * 1024, |
---|
| 148 | <a name="l00176"></a>00176 ENET_HOST_BANDWIDTH_THROTTLE_INTERVAL = 1000, |
---|
| 149 | <a name="l00177"></a>00177 ENET_HOST_DEFAULT_MTU = 1400, |
---|
| 150 | <a name="l00178"></a>00178 |
---|
| 151 | <a name="l00179"></a>00179 ENET_PEER_DEFAULT_ROUND_TRIP_TIME = 500, |
---|
| 152 | <a name="l00180"></a>00180 ENET_PEER_DEFAULT_PACKET_THROTTLE = 32, |
---|
| 153 | <a name="l00181"></a>00181 ENET_PEER_PACKET_THROTTLE_SCALE = 32, |
---|
| 154 | <a name="l00182"></a>00182 ENET_PEER_PACKET_THROTTLE_COUNTER = 7, |
---|
| 155 | <a name="l00183"></a>00183 ENET_PEER_PACKET_THROTTLE_ACCELERATION = 2, |
---|
| 156 | <a name="l00184"></a>00184 ENET_PEER_PACKET_THROTTLE_DECELERATION = 2, |
---|
| 157 | <a name="l00185"></a>00185 ENET_PEER_PACKET_THROTTLE_INTERVAL = 5000, |
---|
| 158 | <a name="l00186"></a>00186 ENET_PEER_PACKET_LOSS_SCALE = (1 << 16), |
---|
| 159 | <a name="l00187"></a>00187 ENET_PEER_PACKET_LOSS_INTERVAL = 10000, |
---|
| 160 | <a name="l00188"></a>00188 ENET_PEER_WINDOW_SIZE_SCALE = 64 * 1024, |
---|
| 161 | <a name="l00189"></a>00189 ENET_PEER_TIMEOUT_LIMIT = 32, |
---|
| 162 | <a name="l00190"></a>00190 ENET_PEER_TIMEOUT_MINIMUM = 5000, |
---|
| 163 | <a name="l00191"></a>00191 ENET_PEER_TIMEOUT_MAXIMUM = 30000, |
---|
| 164 | <a name="l00192"></a>00192 ENET_PEER_PING_INTERVAL = 500, |
---|
| 165 | <a name="l00193"></a>00193 ENET_PEER_UNSEQUENCED_WINDOW_SIZE = 4 * 32 |
---|
| 166 | <a name="l00194"></a>00194 }; |
---|
| 167 | <a name="l00195"></a>00195 |
---|
| 168 | <a name="l00196"></a>00196 <span class="keyword">typedef</span> <span class="keyword">struct </span>_ENetChannel |
---|
| 169 | <a name="l00197"></a>00197 { |
---|
| 170 | <a name="l00198"></a>00198 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> outgoingReliableSequenceNumber; |
---|
| 171 | <a name="l00199"></a>00199 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> outgoingUnreliableSequenceNumber; |
---|
| 172 | <a name="l00200"></a>00200 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> incomingReliableSequenceNumber; |
---|
| 173 | <a name="l00201"></a>00201 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> incomingUnreliableSequenceNumber; |
---|
| 174 | <a name="l00202"></a>00202 ENetList incomingReliableCommands; |
---|
| 175 | <a name="l00203"></a>00203 ENetList incomingUnreliableCommands; |
---|
| 176 | <a name="l00204"></a>00204 } ENetChannel; |
---|
| 177 | <a name="l00205"></a>00205 |
---|
| 178 | <a name="l00211"></a><a class="code" href="struct__ENetPeer.html">00211</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetPeer.html">_ENetPeer</a> |
---|
| 179 | <a name="l00212"></a>00212 { |
---|
| 180 | <a name="l00213"></a>00213 <span class="keyword">struct </span><a class="code" href="struct__ENetHost.html">_ENetHost</a> * host; |
---|
| 181 | <a name="l00214"></a>00214 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> outgoingPeerID; |
---|
| 182 | <a name="l00215"></a>00215 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> incomingPeerID; |
---|
| 183 | <a name="l00216"></a>00216 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> sessionID; |
---|
| 184 | <a name="l00217"></a><a class="code" href="struct__ENetPeer.html#409cfc46d0ccd860552650369704aabe">00217</a> <a class="code" href="struct__ENetAddress.html">ENetAddress</a> <a class="code" href="struct__ENetPeer.html#409cfc46d0ccd860552650369704aabe">address</a>; |
---|
| 185 | <a name="l00218"></a><a class="code" href="struct__ENetPeer.html#cf49b1be64329c23b6c71c2192770673">00218</a> <span class="keywordtype">void</span> * <a class="code" href="struct__ENetPeer.html#cf49b1be64329c23b6c71c2192770673">data</a>; |
---|
| 186 | <a name="l00219"></a>00219 ENetPeerState state; |
---|
| 187 | <a name="l00220"></a>00220 ENetChannel * channels; |
---|
| 188 | <a name="l00221"></a><a class="code" href="struct__ENetPeer.html#937b3acec315f862b5012ae1d89159af">00221</a> size_t <a class="code" href="struct__ENetPeer.html#937b3acec315f862b5012ae1d89159af">channelCount</a>; |
---|
| 189 | <a name="l00222"></a><a class="code" href="struct__ENetPeer.html#0636b6dde4c71255d39dbdd0c2f734d9">00222</a> <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> <a class="code" href="struct__ENetPeer.html#0636b6dde4c71255d39dbdd0c2f734d9">incomingBandwidth</a>; |
---|
| 190 | <a name="l00223"></a><a class="code" href="struct__ENetPeer.html#11d187402e8b0df357a8763145aa72e0">00223</a> <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> <a class="code" href="struct__ENetPeer.html#11d187402e8b0df357a8763145aa72e0">outgoingBandwidth</a>; |
---|
| 191 | <a name="l00224"></a>00224 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> incomingBandwidthThrottleEpoch; |
---|
| 192 | <a name="l00225"></a>00225 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> outgoingBandwidthThrottleEpoch; |
---|
| 193 | <a name="l00226"></a>00226 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> incomingDataTotal; |
---|
| 194 | <a name="l00227"></a>00227 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> outgoingDataTotal; |
---|
| 195 | <a name="l00228"></a>00228 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> lastSendTime; |
---|
| 196 | <a name="l00229"></a>00229 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> lastReceiveTime; |
---|
| 197 | <a name="l00230"></a>00230 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> nextTimeout; |
---|
| 198 | <a name="l00231"></a>00231 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> earliestTimeout; |
---|
| 199 | <a name="l00232"></a>00232 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetLossEpoch; |
---|
| 200 | <a name="l00233"></a>00233 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetsSent; |
---|
| 201 | <a name="l00234"></a>00234 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetsLost; |
---|
| 202 | <a name="l00235"></a><a class="code" href="struct__ENetPeer.html#a3cb07744c06c39287457127fadd88e4">00235</a> <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> <a class="code" href="struct__ENetPeer.html#a3cb07744c06c39287457127fadd88e4">packetLoss</a>; |
---|
| 203 | <a name="l00236"></a>00236 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetLossVariance; |
---|
| 204 | <a name="l00237"></a>00237 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetThrottle; |
---|
| 205 | <a name="l00238"></a>00238 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetThrottleLimit; |
---|
| 206 | <a name="l00239"></a>00239 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetThrottleCounter; |
---|
| 207 | <a name="l00240"></a>00240 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetThrottleEpoch; |
---|
| 208 | <a name="l00241"></a>00241 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetThrottleAcceleration; |
---|
| 209 | <a name="l00242"></a>00242 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetThrottleDeceleration; |
---|
| 210 | <a name="l00243"></a>00243 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> packetThrottleInterval; |
---|
| 211 | <a name="l00244"></a>00244 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> lastRoundTripTime; |
---|
| 212 | <a name="l00245"></a>00245 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> lowestRoundTripTime; |
---|
| 213 | <a name="l00246"></a>00246 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> lastRoundTripTimeVariance; |
---|
| 214 | <a name="l00247"></a>00247 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> highestRoundTripTimeVariance; |
---|
| 215 | <a name="l00248"></a><a class="code" href="struct__ENetPeer.html#6b14a8da10acf4de462ae475c71f34d6">00248</a> <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> <a class="code" href="struct__ENetPeer.html#6b14a8da10acf4de462ae475c71f34d6">roundTripTime</a>; |
---|
| 216 | <a name="l00249"></a>00249 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> roundTripTimeVariance; |
---|
| 217 | <a name="l00250"></a>00250 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> mtu; |
---|
| 218 | <a name="l00251"></a>00251 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> windowSize; |
---|
| 219 | <a name="l00252"></a>00252 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> reliableDataInTransit; |
---|
| 220 | <a name="l00253"></a>00253 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> outgoingReliableSequenceNumber; |
---|
| 221 | <a name="l00254"></a>00254 ENetList acknowledgements; |
---|
| 222 | <a name="l00255"></a>00255 ENetList sentReliableCommands; |
---|
| 223 | <a name="l00256"></a>00256 ENetList sentUnreliableCommands; |
---|
| 224 | <a name="l00257"></a>00257 ENetList outgoingReliableCommands; |
---|
| 225 | <a name="l00258"></a>00258 ENetList outgoingUnreliableCommands; |
---|
| 226 | <a name="l00259"></a>00259 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> incomingUnsequencedGroup; |
---|
| 227 | <a name="l00260"></a>00260 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> outgoingUnsequencedGroup; |
---|
| 228 | <a name="l00261"></a>00261 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> unsequencedWindow [ENET_PEER_UNSEQUENCED_WINDOW_SIZE / 32]; |
---|
| 229 | <a name="l00262"></a>00262 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> disconnectData; |
---|
| 230 | <a name="l00263"></a>00263 } <a class="code" href="struct__ENetPeer.html">ENetPeer</a>; |
---|
| 231 | <a name="l00264"></a>00264 |
---|
| 232 | <a name="l00278"></a><a class="code" href="struct__ENetHost.html">00278</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetHost.html">_ENetHost</a> |
---|
| 233 | <a name="l00279"></a>00279 { |
---|
| 234 | <a name="l00280"></a>00280 ENetSocket socket; |
---|
| 235 | <a name="l00281"></a><a class="code" href="struct__ENetHost.html#dd2825b56199fbeae1c21401829bde7f">00281</a> <a class="code" href="struct__ENetAddress.html">ENetAddress</a> <a class="code" href="struct__ENetHost.html#dd2825b56199fbeae1c21401829bde7f">address</a>; |
---|
| 236 | <a name="l00282"></a><a class="code" href="struct__ENetHost.html#ba842c157f1edbd616b0879c0560f018">00282</a> <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> <a class="code" href="struct__ENetHost.html#ba842c157f1edbd616b0879c0560f018">incomingBandwidth</a>; |
---|
| 237 | <a name="l00283"></a><a class="code" href="struct__ENetHost.html#fb9425727abfafd13dc44fec124c9834">00283</a> <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> <a class="code" href="struct__ENetHost.html#fb9425727abfafd13dc44fec124c9834">outgoingBandwidth</a>; |
---|
| 238 | <a name="l00284"></a>00284 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> bandwidthThrottleEpoch; |
---|
| 239 | <a name="l00285"></a>00285 <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> mtu; |
---|
| 240 | <a name="l00286"></a>00286 <span class="keywordtype">int</span> recalculateBandwidthLimits; |
---|
| 241 | <a name="l00287"></a><a class="code" href="struct__ENetHost.html#fe5102e5cb5df101a763806f50a20ca5">00287</a> <a class="code" href="struct__ENetPeer.html">ENetPeer</a> * <a class="code" href="struct__ENetHost.html#fe5102e5cb5df101a763806f50a20ca5">peers</a>; |
---|
| 242 | <a name="l00288"></a><a class="code" href="struct__ENetHost.html#91f7d21a235270a7e81b640ca4d224e1">00288</a> size_t <a class="code" href="struct__ENetHost.html#91f7d21a235270a7e81b640ca4d224e1">peerCount</a>; |
---|
| 243 | <a name="l00289"></a>00289 <a class="code" href="struct__ENetPeer.html">ENetPeer</a> * lastServicedPeer; |
---|
| 244 | <a name="l00290"></a>00290 <span class="keywordtype">int</span> continueSending; |
---|
| 245 | <a name="l00291"></a>00291 size_t packetSize; |
---|
| 246 | <a name="l00292"></a>00292 <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a> headerFlags; |
---|
| 247 | <a name="l00293"></a>00293 ENetProtocol commands [ENET_PROTOCOL_MAXIMUM_PACKET_COMMANDS]; |
---|
| 248 | <a name="l00294"></a>00294 size_t commandCount; |
---|
| 249 | <a name="l00295"></a>00295 ENetBuffer buffers [ENET_BUFFER_MAXIMUM]; |
---|
| 250 | <a name="l00296"></a>00296 size_t bufferCount; |
---|
| 251 | <a name="l00297"></a>00297 <a class="code" href="struct__ENetAddress.html">ENetAddress</a> receivedAddress; |
---|
| 252 | <a name="l00298"></a>00298 <a class="code" href="types_8h.html#34ce80c65abc6389fe0121a83d757f07">enet_uint8</a> receivedData [ENET_PROTOCOL_MAXIMUM_MTU]; |
---|
| 253 | <a name="l00299"></a>00299 size_t receivedDataLength; |
---|
| 254 | <a name="l00300"></a>00300 } <a class="code" href="struct__ENetHost.html">ENetHost</a>; |
---|
| 255 | <a name="l00301"></a>00301 |
---|
| 256 | <a name="l00305"></a><a class="code" href="enet_8h.html#dc5336f0698d4336b587f083d89df414">00305</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> |
---|
| 257 | <a name="l00306"></a>00306 { |
---|
| 258 | <a name="l00308"></a>00308 <a class="code" href="enet_8h.html#dc5336f0698d4336b587f083d89df414d76c1d9192a5c6ac60a3820e3d7379c5">ENET_EVENT_TYPE_NONE</a> = 0, |
---|
| 259 | <a name="l00309"></a>00309 |
---|
| 260 | <a name="l00313"></a>00313 <a class="code" href="enet_8h.html#dc5336f0698d4336b587f083d89df414efd9fa36297e41ca4c1cbcfdeb7e4a9d">ENET_EVENT_TYPE_CONNECT</a> = 1, |
---|
| 261 | <a name="l00314"></a>00314 |
---|
| 262 | <a name="l00322"></a>00322 <a class="code" href="enet_8h.html#dc5336f0698d4336b587f083d89df4144fa47af84cf901810510aeba077a1c2f">ENET_EVENT_TYPE_DISCONNECT</a> = 2, |
---|
| 263 | <a name="l00323"></a>00323 |
---|
| 264 | <a name="l00330"></a>00330 <a class="code" href="enet_8h.html#dc5336f0698d4336b587f083d89df41467d928ca38b289db53ec9f56c91c5d9d">ENET_EVENT_TYPE_RECEIVE</a> = 3 |
---|
| 265 | <a name="l00331"></a>00331 } <a class="code" href="enet_8h.html#dc5336f0698d4336b587f083d89df414">ENetEventType</a>; |
---|
| 266 | <a name="l00332"></a>00332 |
---|
| 267 | <a name="l00338"></a><a class="code" href="struct__ENetEvent.html">00338</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct__ENetEvent.html">_ENetEvent</a> |
---|
| 268 | <a name="l00339"></a>00339 { |
---|
| 269 | <a name="l00340"></a><a class="code" href="struct__ENetEvent.html#53cd59a74e46de03e8f4b3fd47822d96">00340</a> <a class="code" href="enet_8h.html#dc5336f0698d4336b587f083d89df414">ENetEventType</a> <a class="code" href="struct__ENetEvent.html#53cd59a74e46de03e8f4b3fd47822d96">type</a>; |
---|
| 270 | <a name="l00341"></a><a class="code" href="struct__ENetEvent.html#c991d0db800bc1c70b56ad63f1670140">00341</a> <a class="code" href="struct__ENetPeer.html">ENetPeer</a> * <a class="code" href="struct__ENetEvent.html#c991d0db800bc1c70b56ad63f1670140">peer</a>; |
---|
| 271 | <a name="l00342"></a><a class="code" href="struct__ENetEvent.html#9d82e67a0f26c05de4b39bc839cb36ec">00342</a> <a class="code" href="types_8h.html#34ce80c65abc6389fe0121a83d757f07">enet_uint8</a> <a class="code" href="struct__ENetEvent.html#9d82e67a0f26c05de4b39bc839cb36ec">channelID</a>; |
---|
| 272 | <a name="l00343"></a><a class="code" href="struct__ENetEvent.html#661ec4aac2ab15159b3da9e16175c3f4">00343</a> <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> <a class="code" href="struct__ENetEvent.html#661ec4aac2ab15159b3da9e16175c3f4">data</a>; |
---|
| 273 | <a name="l00344"></a><a class="code" href="struct__ENetEvent.html#fb6303a5593fce6b9671efbc2ca1b5de">00344</a> <a class="code" href="struct__ENetPacket.html">ENetPacket</a> * <a class="code" href="struct__ENetEvent.html#fb6303a5593fce6b9671efbc2ca1b5de">packet</a>; |
---|
| 274 | <a name="l00345"></a>00345 } <a class="code" href="struct__ENetEvent.html">ENetEvent</a>; |
---|
| 275 | <a name="l00346"></a>00346 |
---|
| 276 | <a name="l00356"></a>00356 ENET_API <span class="keywordtype">int</span> <a class="code" href="group__global.html#g67fa85c46a1dc91f968f25fc0637c897">enet_initialize</a> (<span class="keywordtype">void</span>); |
---|
| 277 | <a name="l00357"></a>00357 |
---|
| 278 | <a name="l00365"></a>00365 ENET_API <span class="keywordtype">int</span> <a class="code" href="group__global.html#gef1e7849f3ddde18c6a30f32783c899d">enet_initialize_with_callbacks</a> (ENetVersion version, <span class="keyword">const</span> ENetCallbacks * inits); |
---|
| 279 | <a name="l00366"></a>00366 |
---|
| 280 | <a name="l00371"></a>00371 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__global.html#gd62cf417e08a2b98d48572a336f7db25">enet_deinitialize</a> (<span class="keywordtype">void</span>); |
---|
| 281 | <a name="l00372"></a>00372 |
---|
| 282 | <a name="l00381"></a>00381 ENET_API <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> <a class="code" href="enet_8h.html#3d60275f78985d9aaba12c2fad13c37f">enet_time_get</a> (<span class="keywordtype">void</span>); |
---|
| 283 | <a name="l00385"></a>00385 ENET_API <span class="keywordtype">void</span> <a class="code" href="enet_8h.html#820cd12062e6fabcbfd3c24c4759e8ca">enet_time_set</a> (<a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 284 | <a name="l00386"></a>00386 |
---|
| 285 | <a name="l00390"></a>00390 ENET_API ENetSocket enet_socket_create (ENetSocketType, <span class="keyword">const</span> <a class="code" href="struct__ENetAddress.html">ENetAddress</a> *); |
---|
| 286 | <a name="l00391"></a>00391 ENET_API ENetSocket enet_socket_accept (ENetSocket, <a class="code" href="struct__ENetAddress.html">ENetAddress</a> *); |
---|
| 287 | <a name="l00392"></a>00392 ENET_API <span class="keywordtype">int</span> enet_socket_connect (ENetSocket, <span class="keyword">const</span> <a class="code" href="struct__ENetAddress.html">ENetAddress</a> *); |
---|
| 288 | <a name="l00393"></a>00393 ENET_API <span class="keywordtype">int</span> enet_socket_send (ENetSocket, <span class="keyword">const</span> <a class="code" href="struct__ENetAddress.html">ENetAddress</a> *, <span class="keyword">const</span> ENetBuffer *, size_t); |
---|
| 289 | <a name="l00394"></a>00394 ENET_API <span class="keywordtype">int</span> enet_socket_receive (ENetSocket, <a class="code" href="struct__ENetAddress.html">ENetAddress</a> *, ENetBuffer *, size_t); |
---|
| 290 | <a name="l00395"></a>00395 ENET_API <span class="keywordtype">int</span> enet_socket_wait (ENetSocket, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 291 | <a name="l00396"></a>00396 ENET_API <span class="keywordtype">void</span> enet_socket_destroy (ENetSocket); |
---|
| 292 | <a name="l00397"></a>00397 |
---|
| 293 | <a name="l00411"></a>00411 ENET_API <span class="keywordtype">int</span> <a class="code" href="group__Address.html#g32a6ae1ed3d7704858f237688e7384ee">enet_address_set_host</a> (<a class="code" href="struct__ENetAddress.html">ENetAddress</a> * address, <span class="keyword">const</span> <span class="keywordtype">char</span> * hostName); |
---|
| 294 | <a name="l00412"></a>00412 |
---|
| 295 | <a name="l00421"></a>00421 ENET_API <span class="keywordtype">int</span> <a class="code" href="group__Address.html#g770507a74d2e98334eebdadd9c681f69">enet_address_get_host_ip</a> (<span class="keyword">const</span> <a class="code" href="struct__ENetAddress.html">ENetAddress</a> * address, <span class="keywordtype">char</span> * hostName, size_t nameLength); |
---|
| 296 | <a name="l00422"></a>00422 |
---|
| 297 | <a name="l00431"></a>00431 ENET_API <span class="keywordtype">int</span> <a class="code" href="group__Address.html#g55282b3074cb409544f6aa72a67582ab">enet_address_get_host</a> (<span class="keyword">const</span> <a class="code" href="struct__ENetAddress.html">ENetAddress</a> * address, <span class="keywordtype">char</span> * hostName, size_t nameLength); |
---|
| 298 | <a name="l00432"></a>00432 |
---|
| 299 | <a name="l00435"></a>00435 ENET_API <a class="code" href="struct__ENetPacket.html">ENetPacket</a> * <a class="code" href="group__Packet.html#gac61b251aebbf9f5e5e313eca51339ea">enet_packet_create</a> (<span class="keyword">const</span> <span class="keywordtype">void</span> *, size_t, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 300 | <a name="l00436"></a>00436 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__Packet.html#gb58895376ee4ade8f4e13761a44ba263">enet_packet_destroy</a> (<a class="code" href="struct__ENetPacket.html">ENetPacket</a> *); |
---|
| 301 | <a name="l00437"></a>00437 ENET_API <span class="keywordtype">int</span> <a class="code" href="group__Packet.html#g0aee7f8c7e2d2c4b64f6d68d930155a8">enet_packet_resize</a> (<a class="code" href="struct__ENetPacket.html">ENetPacket</a> *, size_t); |
---|
| 302 | <a name="l00438"></a>00438 <span class="keyword">extern</span> <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a> enet_crc32 (<span class="keyword">const</span> ENetBuffer *, size_t); |
---|
| 303 | <a name="l00439"></a>00439 |
---|
| 304 | <a name="l00440"></a>00440 ENET_API <a class="code" href="struct__ENetHost.html">ENetHost</a> * <a class="code" href="group__host.html#g929df1baa1662e1eb0ae89af9ee3b339">enet_host_create</a> (<span class="keyword">const</span> <a class="code" href="struct__ENetAddress.html">ENetAddress</a> *, size_t, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 305 | <a name="l00441"></a>00441 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__host.html#gcec1e9a0b528c1f9ce30544d2d5b5b79">enet_host_destroy</a> (<a class="code" href="struct__ENetHost.html">ENetHost</a> *); |
---|
| 306 | <a name="l00442"></a>00442 ENET_API <a class="code" href="struct__ENetPeer.html">ENetPeer</a> * <a class="code" href="group__host.html#g04f234142512c08dd86a22b05020bd88">enet_host_connect</a> (<a class="code" href="struct__ENetHost.html">ENetHost</a> *, <span class="keyword">const</span> <a class="code" href="struct__ENetAddress.html">ENetAddress</a> *, size_t); |
---|
| 307 | <a name="l00443"></a>00443 ENET_API <span class="keywordtype">int</span> <a class="code" href="group__host.html#g6ba501b3ee576e5578c8e6d1694ebd49">enet_host_service</a> (<a class="code" href="struct__ENetHost.html">ENetHost</a> *, <a class="code" href="struct__ENetEvent.html">ENetEvent</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 308 | <a name="l00444"></a>00444 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__host.html#gc8f53bcdbd540043f87e7d59048559fa">enet_host_flush</a> (<a class="code" href="struct__ENetHost.html">ENetHost</a> *); |
---|
| 309 | <a name="l00445"></a>00445 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__host.html#g5190a63f78eb0c15bd96cda44bf423c6">enet_host_broadcast</a> (<a class="code" href="struct__ENetHost.html">ENetHost</a> *, <a class="code" href="types_8h.html#34ce80c65abc6389fe0121a83d757f07">enet_uint8</a>, <a class="code" href="struct__ENetPacket.html">ENetPacket</a> *); |
---|
| 310 | <a name="l00446"></a>00446 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__host.html#g83c5fa02a3ba6ab829856302e54929fe">enet_host_bandwidth_limit</a> (<a class="code" href="struct__ENetHost.html">ENetHost</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 311 | <a name="l00447"></a>00447 <span class="keyword">extern</span> <span class="keywordtype">void</span> enet_host_bandwidth_throttle (<a class="code" href="struct__ENetHost.html">ENetHost</a> *); |
---|
| 312 | <a name="l00448"></a>00448 |
---|
| 313 | <a name="l00449"></a>00449 ENET_API <span class="keywordtype">int</span> <a class="code" href="group__peer.html#gf082a0ae58d9c435bed75c7325cf7290">enet_peer_send</a> (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <a class="code" href="types_8h.html#34ce80c65abc6389fe0121a83d757f07">enet_uint8</a>, <a class="code" href="struct__ENetPacket.html">ENetPacket</a> *); |
---|
| 314 | <a name="l00450"></a>00450 ENET_API <a class="code" href="struct__ENetPacket.html">ENetPacket</a> * <a class="code" href="group__peer.html#g8dc63196f44a3b7a31fd23d8f856d80f">enet_peer_receive</a> (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <a class="code" href="types_8h.html#34ce80c65abc6389fe0121a83d757f07">enet_uint8</a>); |
---|
| 315 | <a name="l00451"></a>00451 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__peer.html#g5c0708ddaf340aa42e7754a91ce456b6">enet_peer_ping</a> (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *); |
---|
| 316 | <a name="l00452"></a>00452 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__peer.html#g9444dfff9574a7d21dbbdd34385a7d4d">enet_peer_reset</a> (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *); |
---|
| 317 | <a name="l00453"></a>00453 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__peer.html#g0e807704b6ecace5004c2cdcfbf813c2">enet_peer_disconnect</a> (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 318 | <a name="l00454"></a>00454 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__peer.html#g636cc45f52461b567d6daffe4ab8f4e9">enet_peer_disconnect_now</a> (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 319 | <a name="l00455"></a>00455 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__peer.html#g759270d8cccec70f76274e93b49e5ac5">enet_peer_disconnect_later</a> (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 320 | <a name="l00456"></a>00456 ENET_API <span class="keywordtype">void</span> <a class="code" href="group__peer.html#gb35807c848b6c88af12ce8476dffbc84">enet_peer_throttle_configure</a> (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 321 | <a name="l00457"></a>00457 <span class="keyword">extern</span> <span class="keywordtype">int</span> enet_peer_throttle (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 322 | <a name="l00458"></a>00458 <span class="keyword">extern</span> <span class="keywordtype">void</span> enet_peer_reset_queues (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *); |
---|
| 323 | <a name="l00459"></a>00459 <span class="keyword">extern</span> ENetOutgoingCommand * enet_peer_queue_outgoing_command (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <span class="keyword">const</span> ENetProtocol *, <a class="code" href="struct__ENetPacket.html">ENetPacket</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>, <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a>); |
---|
| 324 | <a name="l00460"></a>00460 <span class="keyword">extern</span> ENetIncomingCommand * enet_peer_queue_incoming_command (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <span class="keyword">const</span> ENetProtocol *, <a class="code" href="struct__ENetPacket.html">ENetPacket</a> *, <a class="code" href="types_8h.html#5273659ca3c664b8550452732e9e4ae3">enet_uint32</a>); |
---|
| 325 | <a name="l00461"></a>00461 <span class="keyword">extern</span> ENetAcknowledgement * enet_peer_queue_acknowledgement (<a class="code" href="struct__ENetPeer.html">ENetPeer</a> *, <span class="keyword">const</span> ENetProtocol *, <a class="code" href="types_8h.html#245102585fdf31bdf208639ef47bec5d">enet_uint16</a>); |
---|
| 326 | <a name="l00462"></a>00462 |
---|
| 327 | <a name="l00463"></a>00463 <span class="keyword">extern</span> size_t enet_protocol_command_size (<a class="code" href="types_8h.html#34ce80c65abc6389fe0121a83d757f07">enet_uint8</a>); |
---|
| 328 | <a name="l00464"></a>00464 |
---|
| 329 | <a name="l00465"></a>00465 <span class="preprocessor">#ifdef __cplusplus</span> |
---|
| 330 | <a name="l00466"></a>00466 <span class="preprocessor"></span>} |
---|
| 331 | <a name="l00467"></a>00467 <span class="preprocessor">#endif</span> |
---|
| 332 | <a name="l00468"></a>00468 <span class="preprocessor"></span> |
---|
| 333 | <a name="l00469"></a>00469 <span class="preprocessor">#endif </span><span class="comment">/* __ENET_ENET_H__ */</span> |
---|
| 334 | <a name="l00470"></a>00470 |
---|
| 335 | </pre></div><hr size="1"><address style="align: right;"><small>Generated on Wed Jun 6 14:33:50 2007 for enet by |
---|
| 336 | <a href="http://www.doxygen.org/index.html"> |
---|
| 337 | <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.1 </small></address> |
---|
| 338 | </body> |
---|
| 339 | </html> |
---|