Changeset 3202 for code/branches/netp5/src/network/ServerConnection.cc
- Timestamp:
- Jun 21, 2009, 12:27:19 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp5/src/network/ServerConnection.cc
r3201 r3202 53 53 54 54 bool ServerConnection::openListener() { 55 enet_initialize();56 atexit(enet_deinitialize);57 55 this->host_ = enet_host_create(this->bindAddress_, NETWORK_MAX_CONNECTIONS, 0, 0); 58 56 if ( this->host_ == NULL ) … … 91 89 void ServerConnection::disconnectClient(ClientInformation *client) 92 90 { 93 disconnectPeer( client->getPeer() );91 Connection::disconnectPeer( client->getPeer() ); 94 92 delete client; 95 93 } 96 94 97 void ServerConnection::disconnect Client( ENetEvent* event )95 void ServerConnection::disconnectPeer( ENetEvent* event ) 98 96 { 99 97 COUT(4) << "removing client from list" << std::endl; … … 115 113 ClientInformation *temp = ClientInformation::getBegin(); 116 114 while(temp!=0){ 117 disconnectPeer( temp->getPeer());115 disconnectPeer( &event ); 118 116 temp = temp->next(); 119 117 }
Note: See TracChangeset
for help on using the changeset viewer.