Changeset 7397 for code/branches
- Timestamp:
- Sep 10, 2010, 2:30:21 PM (14 years ago)
- Location:
- code/branches/ipv6/src/external/enet
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ipv6/src/external/enet/host.c
r7396 r7397 15 15 return ENET_SOCKET_NULL; 16 16 17 /* This is not a conditional bind anymore, 18 * because WSARecvFrom returned WSAEINVAL on the IPv6 socket. 19 * TODO: Check for it's consequences. */ 17 20 if (enet_socket_bind (socket, address, family) < 0) 18 21 { -
code/branches/ipv6/src/external/enet/include/enet/enet.h
r7392 r7397 59 59 } ENetHostAddress; 60 60 61 ENET_API const ENetHostAddress ENET_HOST_ANY; /**< specifies the default server host */ 62 ENET_API const ENetHostAddress ENET_IPV4MAPPED_PREFIX; /**< specifies the IPv4-mapped IPv6 prefix */ 63 ENET_API const ENetHostAddress ENET_HOST_BROADCAST; /**< specifies a IPv4 subnet-wide broadcast */ 64 #define ENET_IPV4MAPPED_PREFIX_LEN 12 /**< specifies the length of the IPv4-mapped IPv6 prefix */ 65 #define ENET_PORT_ANY 0 /**< specifies that a port should be automatically chosen */ 61 #define ENET_HOST_ANY_INIT { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } /**< specifies the default server host (macro for variable initialization) */ 62 ENET_API const ENetHostAddress ENET_HOST_ANY; /**< specifies the default server host (global constant variable) */ 63 #define ENET_IPV4MAPPED_PREFIX_INIT { { 0,0,0,0,0,0,0,0,0,0,0xff,0xff,0,0,0,0 } } /**< specifies the IPv4-mapped IPv6 prefix (macro for variable initialization) */ 64 ENET_API const ENetHostAddress ENET_IPV4MAPPED_PREFIX; /**< specifies the IPv4-mapped IPv6 prefix (global constant variable) */ 65 #define ENET_HOST_BROADCAST_INIT { { 0,0,0,0,0,0,0,0,0,0,0xff,0xff,0xff,0xff,0xff,0xff } } /**< specifies a IPv4 subnet-wide broadcast (macro for variable initialization) */ 66 ENET_API const ENetHostAddress ENET_HOST_BROADCAST; /**< specifies a IPv4 subnet-wide broadcast (global constant variable) */ 67 enum { 68 ENET_IPV4MAPPED_PREFIX_LEN = 12, /**< specifies the length of the IPv4-mapped IPv6 prefix */ 69 ENET_PORT_ANY = 0 /**< specifies that a port should be automatically chosen */ 70 }; 66 71 67 72 /** -
code/branches/ipv6/src/external/enet/protocol.c
r7391 r7397 10 10 #include "enet/enet.h" 11 11 12 const ENetHostAddress ENET_HOST_ANY = { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } };13 const ENetHostAddress ENET_IPV4MAPPED_PREFIX = { { 0,0,0,0,0,0,0,0,0,0, 0xff, 0xff, 0,0,0,0 } };14 const ENetHostAddress ENET_HOST_BROADCAST = { { 0,0,0,0,0,0,0,0,0,0, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff } };12 const ENetHostAddress ENET_HOST_ANY = ENET_HOST_ANY_INIT; 13 const ENetHostAddress ENET_IPV4MAPPED_PREFIX = ENET_IPV4MAPPED_PREFIX_INIT; 14 const ENetHostAddress ENET_HOST_BROADCAST = ENET_HOST_BROADCAST_INIT; 15 15 16 16 static size_t commandSizes [ENET_PROTOCOL_COMMAND_COUNT] = … … 33 33 enet_address_map4 (enet_uint32 address) 34 34 { 35 ENetHostAddress addr = ENET_IPV4MAPPED_PREFIX ;35 ENetHostAddress addr = ENET_IPV4MAPPED_PREFIX_INIT; 36 36 ((enet_uint32 *)addr.addr)[3] = address; 37 37 return addr; -
code/branches/ipv6/src/external/enet/unix.c
r7394 r7397 200 200 else 201 201 { 202 ENetAddress address_; 203 address_.host = ENET_HOST_ANY; 204 address_.scopeID = 0; 205 address_.port = 0; 202 ENetAddress address_ = { ENET_HOST_ANY_INIT, 0, 0 }; 206 203 enet_address_set_sin((struct sockaddr *) & sin, & address_, family); 207 204 } -
code/branches/ipv6/src/external/enet/win32.c
r7394 r7397 181 181 else 182 182 { 183 ENetAddress address_; 184 address_.host = ENET_HOST_ANY; 185 address_.scopeID = 0; 186 address_.port = 0; 183 ENetAddress address_ = { ENET_HOST_ANY_INIT, 0, 0 }; 187 184 enet_address_set_sin((SOCKADDR *) & sin, & address_, family); 188 185 }
Note: See TracChangeset
for help on using the changeset viewer.