Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 10, 2010, 3:14:40 AM (14 years ago)
Author:
adrfried
Message:

always bind to sockets, even in client mode

Maybe the WSAEINVAL on Windows goes away with this.

TODO
Check if there are any side effects of this action.
Are there any half-opened connections, if someone tries to connect to
the client?
Surely there is an useless bind on one of the two socket wich is not
used.

File:
1 edited

Legend:

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

    r7391 r7396  
    1515        return ENET_SOCKET_NULL;
    1616
    17     if (address != NULL && enet_socket_bind (socket, address, family) < 0)
     17    if (enet_socket_bind (socket, address, family) < 0)
    1818    {
    1919        enet_socket_destroy (socket);
Note: See TracChangeset for help on using the changeset viewer.