Changeset 7731 in orxonox.OLD for branches/network/src/subprojects
- Timestamp:
- May 19, 2006, 4:22:39 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/subprojects/network/network_unit_test.cc
r7681 r7731 220 220 for( int i = 0; i < 3; i++) 221 221 { 222 nm->synchronize( );222 nm->synchronize( 1000 ); 223 223 /* simulate the network delay */ 224 224 SDL_Delay(50); … … 237 237 } 238 238 239 voidtestCB( MessageId messageId, byte * data, int dataLength, void * someData, int userId )239 bool testCB( MessageId messageId, byte * data, int dataLength, void * someData, int userId ) 240 240 { 241 241 printf("GOT MESSAGE: %s\n", data); 242 return true; 242 243 } 243 244 … … 273 274 { 274 275 MessageManager::getInstance()->sendMessage( TESTMESSAGEID, (byte*)"server to client", 18, RT_ALL, 0, MP_HIGHBANDWIDTH ); 275 netMan->synchronize( );276 netMan->synchronize( 1000 ); 276 277 SDL_Delay(1000); 277 278 ss->debug(); … … 311 312 for(;;) 312 313 { 313 netMan->synchronize( );314 netMan->synchronize( 1000 ); 314 315 MessageManager::getInstance()->sendMessage( TESTMESSAGEID, (byte*)"client to server", 18, RT_ALL, 0, MP_HIGHBANDWIDTH ); 315 316 ss = dynamic_cast<SimpleSync*>(ClassList::getObject( "Server", CL_SIMPLE_SYNC ) ); … … 355 356 for(;;) 356 357 { 357 netMan->synchronize( );358 netMan->synchronize( 1000 ); 358 359 SDL_Delay(10); 359 360 }
Note: See TracChangeset
for help on using the changeset viewer.