From 92f904f56a5c0f3f7f81dc37645648d9c4368bd7 Mon Sep 17 00:00:00 2001 From: eihrul Date: Wed, 13 Dec 2006 04:36:07 +0000 Subject: *** empty log message *** --- include/enet/enet.h | 14 ++++++++++++-- include/enet/protocol.h | 6 +++--- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/enet/enet.h b/include/enet/enet.h index a19640f..72e36c8 100644 --- a/include/enet/enet.h +++ b/include/enet/enet.h @@ -183,7 +183,7 @@ enum ENET_PEER_TIMEOUT_MINIMUM = 5000, ENET_PEER_TIMEOUT_MAXIMUM = 30000, ENET_PEER_PING_INTERVAL = 500, - ENET_PEER_UNSEQUENCED_WINDOW_SIZE = 4 * 32, + ENET_PEER_UNSEQUENCED_WINDOW_SIZE = 4 * 32 }; typedef struct _ENetChannel @@ -396,7 +396,17 @@ ENET_API void enet_socket_destroy (ENetSocket); */ ENET_API int enet_address_set_host (ENetAddress * address, const char * hostName); -/** Attempts to do a reserve lookup of the host field in the address parameter. +/** Gives the printable form of the ip address specified in the address parameter. + @param address address printed + @param hostName destination for name, must not be NULL + @param nameLength maximum length of hostName. + @returns the null-terminated name of the host in hostName on success + @retval 0 on success + @retval < 0 on failure +*/ +ENET_API int enet_address_get_host_ip (const ENetAddress * address, char * hostName, size_t nameLength); + +/** Attempts to do a reverse lookup of the host field in the address parameter. @param address address used for reverse lookup @param hostName destination for name, must not be NULL @param nameLength maximum length of hostName. diff --git a/include/enet/protocol.h b/include/enet/protocol.h index e5b4a32..363857b 100644 --- a/include/enet/protocol.h +++ b/include/enet/protocol.h @@ -16,7 +16,7 @@ enum ENET_PROTOCOL_MAXIMUM_WINDOW_SIZE = 32768, ENET_PROTOCOL_MINIMUM_CHANNEL_COUNT = 1, ENET_PROTOCOL_MAXIMUM_CHANNEL_COUNT = 255, - ENET_PROTOCOL_MAXIMUM_PEER_ID = 0x7FFF, + ENET_PROTOCOL_MAXIMUM_PEER_ID = 0x7FFF }; typedef enum @@ -35,7 +35,7 @@ typedef enum ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE = 11, ENET_PROTOCOL_COMMAND_COUNT = 12, - ENET_PROTOCOL_COMMAND_MASK = 0x0F, + ENET_PROTOCOL_COMMAND_MASK = 0x0F } ENetProtocolCommand; typedef enum @@ -44,7 +44,7 @@ typedef enum ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED = (1 << 6), ENET_PROTOCOL_HEADER_FLAG_SENT_TIME = (1 << 15), - ENET_PROTOCOL_HEADER_FLAG_MASK = 0x8000, + ENET_PROTOCOL_HEADER_FLAG_MASK = 0x8000 } ENetProtocolFlag; typedef struct -- cgit v1.2.3