Changeset 7389 for code/branches/ipv6/src/external/enet/protocol.c
- Timestamp:
- Sep 9, 2010, 1:09:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ipv6/src/external/enet/protocol.c
r7377 r7389 1523 1523 1524 1524 ENetAddressFamily family = enet_get_address_family (& currentPeer -> address); 1525 sentLength = enet_socket_send (family == ENET_IPV4 ? host -> socket4 : host -> socket6, 1525 ENetSocket socket = family == ENET_IPV4 ? host -> socket4 : host -> socket6; 1526 if (socket == ENET_SOCKET_NULL) 1527 return -1; 1528 sentLength = enet_socket_send (socket, 1526 1529 & currentPeer -> address, 1527 1530 host -> buffers, … … 1638 1641 } 1639 1642 1640 switch (enet_protocol_receive_incoming_commands (host, event, ENET_IPV4)) 1643 if (host -> socket4 != ENET_SOCKET_NULL) 1644 switch (enet_protocol_receive_incoming_commands (host, event, ENET_IPV4)) 1641 1645 { 1642 1646 case 1: … … 1652 1656 } 1653 1657 1654 switch (enet_protocol_receive_incoming_commands (host, event, ENET_IPV6)) 1658 if (host -> socket6 != ENET_SOCKET_NULL) 1659 switch (enet_protocol_receive_incoming_commands (host, event, ENET_IPV6)) 1655 1660 { 1656 1661 case 1:
Note: See TracChangeset
for help on using the changeset viewer.