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 3 #define ENET_VERSION_MINOR 3
#define ENET_VERSION_PATCH 6 #define ENET_VERSION_PATCH 7
#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;
struct _ENetHost; struct _ENetHost;
struct _ENetEvent; struct _ENetEvent;
struct _ENetPacket; struct _ENetPacket;
typedef enum _ENetSocketType typedef enum _ENetSocketType
skipping to change at line 115 skipping to change at line 115
* made until the packet is delivered */ * made until the packet is delivered */
ENET_PACKET_FLAG_RELIABLE = (1 << 0), ENET_PACKET_FLAG_RELIABLE = (1 << 0),
/** packet will not be sequenced with other packets /** packet will not be sequenced with other packets
* not supported for reliable packets * not supported for reliable packets
*/ */
ENET_PACKET_FLAG_UNSEQUENCED = (1 << 1), ENET_PACKET_FLAG_UNSEQUENCED = (1 << 1),
/** packet will not allocate data, and user must supply it instead */ /** 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) sen ds /** packet will be fragmented using unreliable (instead of reliable) sen ds
* if it exceeds the MTU */ * if it exceeds the MTU */
ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT = (1 << 3) ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT = (1 << 3),
/** whether the packet has been sent from all queues it has been entered
into */
ENET_PACKET_FLAG_SENT = (1<<8)
} ENetPacketFlag; } ENetPacketFlag;
typedef void (ENET_CALLBACK * ENetPacketFreeCallback) (struct _ENetPacket * ); typedef void (ENET_CALLBACK * ENetPacketFreeCallback) (struct _ENetPacket * );
/** /**
* ENet packet structure. * ENet packet structure.
* *
* An ENet data packet that may be sent to or received from a peer. The sho wn * An ENet data packet that may be sent to or received from a peer. The sho wn
* fields should only be read and never modified. The data field contains t he * fields should only be read and never modified. The data field contains t he
* allocated data for the packet. The dataLength fields specifies the lengt h * allocated data for the packet. The dataLength fields specifies the lengt h
skipping to change at line 146 skipping to change at line 149
@sa ENetPacketFlag @sa ENetPacketFlag
*/ */
typedef struct _ENetPacket typedef struct _ENetPacket
{ {
size_t referenceCount; /**< internal use only */ size_t referenceCount; /**< internal use only */
enet_uint32 flags; /**< bitwise-or of ENetPacketF lag constants */ enet_uint32 flags; /**< bitwise-or of ENetPacketF lag constants */
enet_uint8 * data; /**< allocated data for packet */ enet_uint8 * data; /**< allocated data for packet */
size_t dataLength; /**< length of data */ size_t dataLength; /**< length of data */
ENetPacketFreeCallback freeCallback; /**< function to be called whe n the packet is no longer in use */ ENetPacketFreeCallback freeCallback; /**< function to be called whe n the packet is no longer in use */
void * userData; /**< application private data, may be freely modified */
} ENetPacket; } ENetPacket;
typedef struct _ENetAcknowledgement typedef struct _ENetAcknowledgement
{ {
ENetListNode acknowledgementList; ENetListNode acknowledgementList;
enet_uint32 sentTime; enet_uint32 sentTime;
ENetProtocol command; ENetProtocol command;
} ENetAcknowledgement; } ENetAcknowledgement;
typedef struct _ENetOutgoingCommand typedef struct _ENetOutgoingCommand
 End of changes. 3 change blocks. 
2 lines changed or deleted 7 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/