enet.h | enet.h | |||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
#include "enet/unix.h" | #include "enet/unix.h" | |||
#endif | #endif | |||
#include "enet/types.h" | #include "enet/types.h" | |||
#include "enet/protocol.h" | #include "enet/protocol.h" | |||
#include "enet/list.h" | #include "enet/list.h" | |||
#include "enet/callbacks.h" | #include "enet/callbacks.h" | |||
#define ENET_VERSION_MAJOR 1 | #define ENET_VERSION_MAJOR 1 | |||
#define ENET_VERSION_MINOR 2 | #define ENET_VERSION_MINOR 2 | |||
#define ENET_VERSION_PATCH 3 | #define ENET_VERSION_PATCH 4 | |||
#define ENET_VERSION_CREATE(major, minor, patch) (((major)<<16) | ((minor)< <8) | (patch)) | #define ENET_VERSION_CREATE(major, minor, patch) (((major)<<16) | ((minor)< <8) | (patch)) | |||
#define ENET_VERSION ENET_VERSION_CREATE(ENET_VERSION_MAJOR, ENET_VERSION_M INOR, ENET_VERSION_PATCH) | #define ENET_VERSION ENET_VERSION_CREATE(ENET_VERSION_MAJOR, ENET_VERSION_M INOR, ENET_VERSION_PATCH) | |||
typedef enet_uint32 ENetVersion; | typedef enet_uint32 ENetVersion; | |||
typedef enum _ENetSocketType | typedef enum _ENetSocketType | |||
{ | { | |||
ENET_SOCKET_TYPE_STREAM = 1, | ENET_SOCKET_TYPE_STREAM = 1, | |||
ENET_SOCKET_TYPE_DATAGRAM = 2 | ENET_SOCKET_TYPE_DATAGRAM = 2 | |||
} ENetSocketType; | } ENetSocketType; | |||
skipping to change at line 221 | skipping to change at line 221 | |||
ENET_PEER_FREE_RELIABLE_WINDOWS = 8 | ENET_PEER_FREE_RELIABLE_WINDOWS = 8 | |||
}; | }; | |||
typedef struct _ENetChannel | typedef struct _ENetChannel | |||
{ | { | |||
enet_uint16 outgoingReliableSequenceNumber; | enet_uint16 outgoingReliableSequenceNumber; | |||
enet_uint16 outgoingUnreliableSequenceNumber; | enet_uint16 outgoingUnreliableSequenceNumber; | |||
enet_uint16 usedReliableWindows; | enet_uint16 usedReliableWindows; | |||
enet_uint16 reliableWindows [ENET_PEER_RELIABLE_WINDOWS]; | enet_uint16 reliableWindows [ENET_PEER_RELIABLE_WINDOWS]; | |||
enet_uint16 incomingReliableSequenceNumber; | enet_uint16 incomingReliableSequenceNumber; | |||
enet_uint16 incomingUnreliableSequenceNumber; | ||||
ENetList incomingReliableCommands; | ENetList incomingReliableCommands; | |||
ENetList incomingUnreliableCommands; | ENetList incomingUnreliableCommands; | |||
} ENetChannel; | } ENetChannel; | |||
/** | /** | |||
* An ENet peer which data packets may be sent or received from. | * An ENet peer which data packets may be sent or received from. | |||
* | * | |||
* No fields should be modified unless otherwise specified. | * No fields should be modified unless otherwise specified. | |||
*/ | */ | |||
typedef struct _ENetPeer | typedef struct _ENetPeer | |||
End of changes. 2 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added | |||