Changeset 1942 for code/branches/objecthierarchy/src/network/Server.cc
- Timestamp:
- Oct 18, 2008, 11:22:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy/src/network/Server.cc
r1941 r1942 282 282 bool Server::addClient(ENetEvent *event){ 283 283 unsigned int newid=0; 284 284 285 285 ClientInformation *temp = ClientInformation::insertBack(new ClientInformation); 286 286 if(!temp){ … … 295 295 temp->setID(newid); 296 296 temp->setPeer(event->peer); 297 297 298 298 // inform all the listeners 299 299 orxonox::ObjectList<ClientConnectionListener>::iterator listener = orxonox::ObjectList<ClientConnectionListener>::begin(); … … 302 302 listener++; 303 303 } 304 304 305 305 COUT(3) << "Server: added client id: " << temp->getID() << std::endl; 306 return createClient(temp->getID()); 306 return createClient(temp->getID()); 307 307 } 308 308 … … 346 346 while(listener){ 347 347 listener->clientDisconnected(client->getID()); 348 listener++; 348 349 } 349 350
Note: See TracChangeset
for help on using the changeset viewer.