Changeset 5812 in orxonox.OLD for branches/network/src/subprojects
- Timestamp:
- Nov 28, 2005, 11:13:15 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/subprojects/network/network_unit_test.cc
r5811 r5812 20 20 { 21 21 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"); 25 27 printf("\n"); 26 28 } … … 189 191 //NetworkStream* server = new NetworkStream(port, ss, NET_SERVER); 190 192 netMan->createServer(*ss, port); 191 193 SDL_Delay(20); 194 195 for(;;) { 196 netMan->synchronize(); 197 SDL_Delay(500); 198 } 192 199 return 0; 193 200 } … … 217 224 netMan->establishConnection(ip, *ss); 218 225 226 for(;;) { 227 netMan->synchronize(); 228 SDL_Delay(500); 229 } 219 230 220 231 //NetworkStream* client = new NetworkStream(ip, ss, NET_CLIENT);
Note: See TracChangeset
for help on using the changeset viewer.