Changeset 7294 for code/branches/ipv6/src
- Timestamp:
- Aug 31, 2010, 6:13:18 PM (14 years ago)
- Location:
- code/branches/ipv6/src/libraries/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ipv6/src/libraries/network/ClientConnection.cc
r7284 r7294 70 70 ENetEvent event; 71 71 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); 73 73 if ( this->host_ == NULL ) 74 74 { … … 77 77 return false; 78 78 } 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); 80 80 if ( this->server_==NULL ) 81 81 { -
code/branches/ipv6/src/libraries/network/LANDiscoverable.cc
r7163 r7294 66 66 ENetAddress bindAddress = { ENET_HOST_ANY, LAN_DISCOVERY_PORT }; 67 67 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 ); 69 69 } 70 70 else -
code/branches/ipv6/src/libraries/network/LANDiscovery.cc
r7284 r7294 42 42 LANDiscovery::LANDiscovery() 43 43 { 44 this->host_ = enet_host_create(NULL, 10, 0, 0 );44 this->host_ = enet_host_create(NULL, 10, 0, 0, 0 ); 45 45 } 46 46 … … 58 58 59 59 ENetPeer* peer; 60 peer = enet_host_connect(this->host_, &address, 0 );60 peer = enet_host_connect(this->host_, &address, 0, 0); 61 61 62 62 ENetEvent event; -
code/branches/ipv6/src/libraries/network/ServerConnection.cc
r7163 r7294 63 63 64 64 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); 66 66 if ( this->host_ == NULL ) 67 67 return false;
Note: See TracChangeset
for help on using the changeset viewer.