Changeset 5847 for code/branches/core5/src/libraries
- Timestamp:
- Oct 1, 2009, 11:09:05 AM (15 years ago)
- Location:
- code/branches/core5/src/libraries/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/libraries/network/Connection.h
r5738 r5847 64 64 65 65 int service(ENetEvent* event); 66 v oid disconnectPeer(ENetPeer *peer);66 virtual void disconnectPeer(ENetPeer *peer); 67 67 68 68 void processQueue(); -
code/branches/core5/src/libraries/network/Server.cc
r5822 r5847 330 330 // inform all the listeners 331 331 ClientConnectionListener::broadcastClientDisconnected(client->getID()); 332 333 delete client; //remove client from list334 332 } 335 333 -
code/branches/core5/src/libraries/network/ServerConnection.cc
r5749 r5847 103 103 { 104 104 Connection::disconnectPeer( client->getPeer() ); 105 std::cout << "disconnecting peer and removing client" << endl; 105 106 delete client; 106 107 } … … 119 120 ClientInformation *client = ClientInformation::findClient(clientID); 120 121 if(client) 121 disconnectClient(client);122 ServerConnection::disconnectClient(client); 122 123 } 123 124 … … 126 127 ClientInformation *temp = ClientInformation::getBegin(); 127 128 while(temp!=0){ 128 disconnectClient( temp );129 ServerConnection::disconnectClient( temp ); 129 130 temp = temp->next(); 130 131 } -
code/branches/core5/src/libraries/network/ServerConnection.h
r5738 r5847 59 59 static bool addPacketAll(ENetPacket *packet); 60 60 virtual void disconnectClient(ClientInformation *client); 61 v oid disconnectPeer( ENetEvent* event );61 virtual void disconnectPeer( ENetEvent* event ); 62 62 void disconnectClient(int clientID); 63 63 protected:
Note: See TracChangeset
for help on using the changeset viewer.