Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2010, 6:13:18 PM (14 years ago)
Author:
adrfried
Message:

made enet 1.3 compatible

Location:
code/branches/ipv6/src/libraries/network
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ipv6/src/libraries/network/ClientConnection.cc

    r7284 r7294  
    7070    ENetEvent event;
    7171
    72     this->host_ = enet_host_create(NULL, NETWORK_CLIENT_MAX_CONNECTIONS, 0, 0);
     72    this->host_ = enet_host_create(NULL, NETWORK_CLIENT_MAX_CONNECTIONS, 0, 0, 0);
    7373    if ( this->host_ == NULL )
    7474    {
     
    7777      return false;
    7878    }
    79     this->server_ = enet_host_connect(this->host_, serverAddress_, NETWORK_CLIENT_CHANNELS);
     79    this->server_ = enet_host_connect(this->host_, serverAddress_, NETWORK_CLIENT_CHANNELS, 0);
    8080    if ( this->server_==NULL )
    8181    {
  • code/branches/ipv6/src/libraries/network/LANDiscoverable.cc

    r7163 r7294  
    6666      ENetAddress bindAddress = { ENET_HOST_ANY, LAN_DISCOVERY_PORT };
    6767      assert( this->host_ == 0 );
    68       this->host_ = enet_host_create( &bindAddress, 10, 0, 0 );
     68      this->host_ = enet_host_create( &bindAddress, 10, 0, 0, 0 );
    6969    }
    7070    else
  • code/branches/ipv6/src/libraries/network/LANDiscovery.cc

    r7284 r7294  
    4242  LANDiscovery::LANDiscovery()
    4343  {
    44     this->host_ = enet_host_create(NULL, 10, 0, 0 );
     44    this->host_ = enet_host_create(NULL, 10, 0, 0, 0 );
    4545  }
    4646
     
    5858
    5959    ENetPeer* peer;
    60     peer = enet_host_connect(this->host_, &address, 0);
     60    peer = enet_host_connect(this->host_, &address, 0, 0);
    6161
    6262    ENetEvent event;
  • code/branches/ipv6/src/libraries/network/ServerConnection.cc

    r7163 r7294  
    6363
    6464  bool ServerConnection::openListener() {
    65     this->host_ = enet_host_create(this->bindAddress_, NETWORK_MAX_CONNECTIONS, 0, 0);
     65    this->host_ = enet_host_create(this->bindAddress_, NETWORK_MAX_CONNECTIONS, 0, 0, 0);
    6666    if ( this->host_ == NULL )
    6767      return false;
Note: See TracChangeset for help on using the changeset viewer.