Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 3, 2010, 12:28:21 AM (14 years ago)
Author:
adrfried
Message:

patch libenet to support ipv6

This is only done for Linux so far.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ipv6/src/external/enet/host.c

    r7328 r7330  
    5050
    5151    host -> socket = enet_socket_create (ENET_SOCKET_TYPE_DATAGRAM);
     52    enet_socket_set_option (host -> socket, ENET_SOCKOPT_V6ONLY, 0); // Needs to be set before bind.
     53
    5254    if (host -> socket == ENET_SOCKET_NULL || (address != NULL && enet_socket_bind (host -> socket, address) < 0))
    5355    {
Note: See TracChangeset for help on using the changeset viewer.