Changeset 7391 for code/branches/ipv6/src/external
- Timestamp:
- Sep 9, 2010, 5:02:16 PM (14 years ago)
- Location:
- code/branches/ipv6/src/external/enet
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ipv6/src/external/enet/CMakeLists.txt
r7390 r7391 29 29 include/enet/win32.h 30 30 31 COMPILATION_BEGIN ENetCompilation.c pp31 COMPILATION_BEGIN ENetCompilation.c 32 32 callbacks.c 33 33 compress.c -
code/branches/ipv6/src/external/enet/host.c
r7389 r7391 53 53 ENetHost * host; 54 54 ENetPeer * currentPeer; 55 int family; 55 56 56 57 if (peerCount > ENET_PROTOCOL_MAXIMUM_PEER_ID) … … 70 71 memset (host -> peers, 0, peerCount * sizeof (ENetPeer)); 71 72 72 intfamily = (address == NULL || !memcmp (& address -> host, & ENET_HOST_ANY, sizeof (ENetHostAddress))) ?73 family = (address == NULL || !memcmp (& address -> host, & ENET_HOST_ANY, sizeof (ENetHostAddress))) ? 73 74 ENET_IPV4 | ENET_IPV6 : 74 75 enet_get_address_family (address); -
code/branches/ipv6/src/external/enet/include/enet/enet.h
r7390 r7391 59 59 } ENetHostAddress; 60 60 61 extern const ENetHostAddress ENET_HOST_ANY; /**< specifies the default server host */62 extern const ENetHostAddress ENET_IPV4MAPPED_PREFIX; /**< specifies the IPv4-mapped IPv6 prefix */63 extern const ENetHostAddress ENET_HOST_BROADCAST; /**< specifies a IPv4 subnet-wide broadcast */61 extern ENET_API const ENetHostAddress ENET_HOST_ANY; /**< specifies the default server host */ 62 extern ENET_API const ENetHostAddress ENET_IPV4MAPPED_PREFIX; /**< specifies the IPv4-mapped IPv6 prefix */ 63 extern ENET_API const ENetHostAddress ENET_HOST_BROADCAST; /**< specifies a IPv4 subnet-wide broadcast */ 64 64 #define ENET_IPV4MAPPED_PREFIX_LEN 12 /**< specifies the length of the IPv4-mapped IPv6 prefix */ 65 65 #define ENET_PORT_ANY 0 /**< specifies that a port should be automatically chosen */ -
code/branches/ipv6/src/external/enet/protocol.c
r7389 r7391 1398 1398 ++ currentPeer) 1399 1399 { 1400 ENetAddressFamily family; 1401 ENetSocket socket; 1402 1400 1403 if (currentPeer -> state == ENET_PEER_STATE_DISCONNECTED || 1401 1404 currentPeer -> state == ENET_PEER_STATE_ZOMBIE) … … 1522 1525 currentPeer -> lastSendTime = host -> serviceTime; 1523 1526 1524 ENetAddressFamilyfamily = enet_get_address_family (& currentPeer -> address);1525 ENetSocketsocket = family == ENET_IPV4 ? host -> socket4 : host -> socket6;1527 family = enet_get_address_family (& currentPeer -> address); 1528 socket = family == ENET_IPV4 ? host -> socket4 : host -> socket6; 1526 1529 if (socket == ENET_SOCKET_NULL) 1527 1530 return -1; -
code/branches/ipv6/src/external/enet/win32.c
r7390 r7391 181 181 else 182 182 { 183 ENetAddress address_ = { ENET_HOST_ANY, 0, 0 }; 183 ENetAddress address_; 184 address_.host = ENET_HOST_ANY; 185 address_.scopeID = 0; 186 address_.port = 0; 184 187 enet_address_set_sin((SOCKADDR *) & sin, & address_, family); 185 188 } … … 366 369 struct timeval timeVal; 367 370 int selectCount; 371 ENetSocket maxSocket; 368 372 369 373 timeVal.tv_sec = timeout / 1000; … … 389 393 } 390 394 391 ENetSocketmaxSocket = 0;395 maxSocket = 0; 392 396 if (socket4 != ENET_SOCKET_NULL) 393 397 maxSocket = socket4;
Note: See TracChangeset
for help on using the changeset viewer.