Changeset 2953 for code/branches/netp2/src/network/ConnectionManager.cc
- Timestamp:
- May 4, 2009, 5:04:58 PM (16 years ago)
- File:
-
- 1 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:
Note: See TracChangeset
for help on using the changeset viewer.