Changeset 2953 for code/branches/netp2
- Timestamp:
- May 4, 2009, 5:04:58 PM (16 years ago)
- Location:
- code/branches/netp2/src/network
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/netp2/src/network/ConnectionManager.cc
r2836 r2953 190 190 191 191 event = new ENetEvent; 192 while(!quit){ 192 while(!quit) 193 { 193 194 { //mutex scope 194 195 boost::recursive_mutex::scoped_lock lock(enet_mutex_g); 195 196 if(enet_host_service(server, event, NETWORK_WAIT_TIMEOUT)<0){ 196 197 // we should never reach this point 197 assert(0);198 198 quit=true; 199 199 continue; 200 printf("waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhh"); 200 201 // add some error handling here ======================== 201 202 } … … 205 206 // log handling ================ 206 207 case ENET_EVENT_TYPE_CONNECT: 208 printf("===================================================================="); 207 209 case ENET_EVENT_TYPE_DISCONNECT: 208 210 case ENET_EVENT_TYPE_RECEIVE: -
code/branches/netp2/src/network/Server.cc
r2949 r2953 155 155 processQueue(); 156 156 //this steers our network frequency 157 timeSinceLastUpdate_+=time;158 if(timeSinceLastUpdate_>=NETWORK_PERIOD){157 // timeSinceLastUpdate_+=time; 158 // if(timeSinceLastUpdate_>=NETWORK_PERIOD){ 159 159 timeSinceLastUpdate_ -= static_cast<unsigned int>( timeSinceLastUpdate_ / NETWORK_PERIOD ) * NETWORK_PERIOD; 160 160 gamestates_->processGamestates(); 161 161 updateGamestate(); 162 162 FunctionCallManager::sendCalls(); 163 }163 // } 164 164 } 165 165
Note: See TracChangeset
for help on using the changeset viewer.