Changeset 7392
- Timestamp:
- Sep 9, 2010, 6:00:00 PM (14 years ago)
- Location:
- code/branches/ipv6/src/external/enet
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ipv6/src/external/enet/include/enet/enet.h
r7391 r7392 59 59 } ENetHostAddress; 60 60 61 externENET_API const ENetHostAddress ENET_HOST_ANY; /**< specifies the default server host */62 externENET_API const ENetHostAddress ENET_IPV4MAPPED_PREFIX; /**< specifies the IPv4-mapped IPv6 prefix */63 externENET_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 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 */ 66 66 67 67 /** -
code/branches/ipv6/src/external/enet/win32.c
r7391 r7392 80 80 { 81 81 address -> host = enet_address_map4 ((((SOCKADDR_IN *) sin) -> sin_addr.s_addr)); 82 / /address -> scopeID = 0;82 /* address -> scopeID = 0; */ 83 83 address -> port = ENET_NET_TO_HOST_16 (((SOCKADDR_IN *) sin) -> sin_port); 84 84 return ENET_IPV4; … … 200 200 enet_socket_create (ENetSocketType type, ENetAddressFamily family) 201 201 { 202 return socket ( PF_INET, type == ENET_SOCKET_TYPE_DATAGRAM ? SOCK_DGRAM : SOCK_STREAM, 0);202 return socket (enet_af (family), type == ENET_SOCKET_TYPE_DATAGRAM ? SOCK_DGRAM : SOCK_STREAM, 0); 203 203 } 204 204
Note: See TracChangeset
for help on using the changeset viewer.