diff options
author | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-05-31 15:54:54 +0200 |
---|---|---|
committer | Stefan Dombrowski <stefan@uni-bonn.de> | 2011-05-31 15:54:54 +0200 |
commit | c5390a30868f7eb3b5337963dba20911ea7dc6ea (patch) | |
tree | 32f64ef97617dcc6c58e4f1415caf808f6498275 /libs/enet/include | |
parent | c464dc20ed2c3b37d81d9bbf96b968900cdebcba (diff) | |
download | mana-c5390a30868f7eb3b5337963dba20911ea7dc6ea.tar.gz mana-c5390a30868f7eb3b5337963dba20911ea7dc6ea.tar.bz2 mana-c5390a30868f7eb3b5337963dba20911ea7dc6ea.tar.xz mana-c5390a30868f7eb3b5337963dba20911ea7dc6ea.zip |
Updating ENet to version 1.3.2
Source: http://enet.bespin.org/download/enet-1.3.2.tar.gz
Diffstat (limited to 'libs/enet/include')
-rw-r--r-- | libs/enet/include/enet/enet.h | 8 | ||||
-rw-r--r-- | libs/enet/include/enet/protocol.h | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/libs/enet/include/enet/enet.h b/libs/enet/include/enet/enet.h index b572590e..02dc2c0a 100644 --- a/libs/enet/include/enet/enet.h +++ b/libs/enet/include/enet/enet.h @@ -25,7 +25,7 @@ extern "C" #define ENET_VERSION_MAJOR 1 #define ENET_VERSION_MINOR 3 -#define ENET_VERSION_PATCH 1 +#define ENET_VERSION_PATCH 2 #define ENET_VERSION_CREATE(major, minor, patch) (((major)<<16) | ((minor)<<8) | (patch)) #define ENET_VERSION ENET_VERSION_CREATE(ENET_VERSION_MAJOR, ENET_VERSION_MINOR, ENET_VERSION_PATCH) @@ -96,7 +96,10 @@ typedef enum _ENetPacketFlag */ ENET_PACKET_FLAG_UNSEQUENCED = (1 << 1), /** packet will not allocate data, and user must supply it instead */ - ENET_PACKET_FLAG_NO_ALLOCATE = (1 << 2) + ENET_PACKET_FLAG_NO_ALLOCATE = (1 << 2), + /** packet will be fragmented using unreliable (instead of reliable) sends + * if it exceeds the MTU */ + ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT = (1 << 3) } ENetPacketFlag; struct _ENetPacket; @@ -218,6 +221,7 @@ typedef struct _ENetChannel enet_uint16 usedReliableWindows; enet_uint16 reliableWindows [ENET_PEER_RELIABLE_WINDOWS]; enet_uint16 incomingReliableSequenceNumber; + enet_uint16 incomingUnreliableSequenceNumber; ENetList incomingReliableCommands; ENetList incomingUnreliableCommands; } ENetChannel; diff --git a/libs/enet/include/enet/protocol.h b/libs/enet/include/enet/protocol.h index 19f7e45d..faef9179 100644 --- a/libs/enet/include/enet/protocol.h +++ b/libs/enet/include/enet/protocol.h @@ -33,7 +33,8 @@ typedef enum _ENetProtocolCommand ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED = 9, ENET_PROTOCOL_COMMAND_BANDWIDTH_LIMIT = 10, ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE = 11, - ENET_PROTOCOL_COMMAND_COUNT = 12, + ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT = 12, + ENET_PROTOCOL_COMMAND_COUNT = 13, ENET_PROTOCOL_COMMAND_MASK = 0x0F } ENetProtocolCommand; |