Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5812 in orxonox.OLD for branches/network/src/subprojects


Ignore:
Timestamp:
Nov 28, 2005, 11:13:15 PM (19 years ago)
Author:
patrick
Message:

Network Test works also: now any server/client pair can use the SimpleSync

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/subprojects/network/network_unit_test.cc

    r5811 r5812  
    2020{
    2121  printf("Network is a network unit test\n");
    22   printf(" --help:           this output\n");
    23   printf(" --sockettest      test network_socket\n");
    24   printf(" --frameworktest   test the network module\n");
     22  printf(" --help                     this output\n");
     23  printf(" -st,  --sockettest         test network_socket\n");
     24  printf(" -ft,  --frameworktest      test the network module\n");
     25  printf(" --server [port number]     creates a test server\n");
     26  printf(" --client [address] [port]  connects to a server\n");
    2527  printf("\n");
    2628}
     
    189191  //NetworkStream* server = new NetworkStream(port, ss, NET_SERVER);
    190192  netMan->createServer(*ss, port);
    191 
     193  SDL_Delay(20);
     194
     195  for(;;) {
     196    netMan->synchronize();
     197    SDL_Delay(500);
     198  }
    192199  return 0;
    193200}
     
    217224  netMan->establishConnection(ip, *ss);
    218225
     226  for(;;) {
     227    netMan->synchronize();
     228    SDL_Delay(500);
     229  }
    219230
    220231  //NetworkStream* client = new NetworkStream(ip, ss, NET_CLIENT);
Note: See TracChangeset for help on using the changeset viewer.