Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 9, 2010, 1:09:09 AM (14 years ago)
Author:
adrfried
Message:

fix some stuff

File:
1 edited

Legend:

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

    r7377 r7389  
    15231523
    15241524        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,
    15261529                                           & currentPeer -> address,
    15271530                                           host -> buffers,
     
    16381641       }
    16391642
    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))
    16411645       {
    16421646       case 1:
     
    16521656       }
    16531657
    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))
    16551660       {
    16561661       case 1:
Note: See TracChangeset for help on using the changeset viewer.