Changeset 605 for code/branches/FICN/src/network
- Timestamp:
- Dec 17, 2007, 10:56:01 PM (17 years ago)
- Location:
- code/branches/FICN/src/network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/network/ClientConnection.cc
r514 r605 147 147 //main loop 148 148 while(!quit){ 149 //std::cout << "connection loop" << std::endl; 149 150 if(enet_host_service(client, &event, NETWORK_WAIT_TIMEOUT)<0){ 150 151 // we should never reach this point … … 212 213 213 214 bool ClientConnection::processData(ENetEvent *event){ 215 std::cout << "got packet, pushing to queue" << std::endl; 214 216 // just add packet to the buffer 215 217 // this can be extended with some preprocessing -
code/branches/FICN/src/network/ClientConnection.h
r369 r605 28 28 #define NETWORK_PORT 55556 29 29 #define NETWORK_CLIENT_MAX_CONNECTIONS 5 30 #define NETWORK_WAIT_TIMEOUT 5 00030 #define NETWORK_WAIT_TIMEOUT 5 31 31 #define NETWORK_SEND_WAIT 5 32 32 #define NETWORK_CLIENT_CHANNELS 2 -
code/branches/FICN/src/network/NetworkFrameListener.h
r601 r605 36 36 private: 37 37 bool frameStarted(const Ogre::FrameEvent &evt){ 38 std::cout << "framelistener" << std::endl;38 //std::cout << "framelistener" << std::endl; 39 39 client_g->tick(evt.timeSinceLastFrame); 40 40 return FrameListener::frameStarted(evt); -
code/branches/FICN/src/network/Server.cc
r604 r605 134 134 */ 135 135 bool Server::sendGameState(){ 136 for(ClientInformation *temp = clients; temp!=0; temp=temp->next()){ 137 connection->addPacket(packet_gen.gstate(&(gamestates->popGameState(temp->getID()))),temp->getID()); 138 } 136 139 return true; 137 140 }
Note: See TracChangeset
for help on using the changeset viewer.