Changeset 9406 in orxonox.OLD for trunk/src/subprojects/network
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/subprojects/network/network_unit_test.cc
r8623 r9406 205 205 206 206 /* create a server stream */ 207 nm->create Server(port);207 nm->createMasterServer(port); 208 208 209 209 /* esatblish a connection */ 210 IP addressip;210 IP ip; 211 211 int error = SDLNet_ResolveHost(&ip, "127.0.0.1", port); 212 212 //SDLNet_ResolveHost(&ip, "localhost", port); 213 213 if(error == -1) 214 214 printf("\n\nerror on address resolution, program inconsistancy\n\n"); 215 nm-> establishConnection("localhost", port);215 nm->createClient("localhost", port); 216 216 nm->connectSynchronizeable( *clientSync ); 217 217 /* adding some break for connection setup */ … … 262 262 netMan->initialize(); 263 263 264 netMan->create Server(/**ss, */ 9999);264 netMan->createMasterServer(/**ss, */ 9999); 265 265 266 266 SimpleSync* ss = new SimpleSync("Server"); … … 307 307 host = "localhost"; 308 308 309 netMan-> establishConnection(host, 9999);309 netMan->createClient(host, 9999); 310 310 311 311 // SimpleSync* ss = new SimpleSync("SimpleSync"); … … 353 353 printf("Connecting to %s, on port %i\n", name, port); 354 354 355 IP addressip;355 IP ip; 356 356 int error = SDLNet_ResolveHost(&ip, name, port); 357 357 if(error == -1) … … 361 361 Synchronizeable* ss = new SimpleSync("SimpleSync\0"); 362 362 363 netMan-> establishConnection( name, port );363 netMan->createClient( name, port ); 364 364 netMan->connectSynchronizeable( *ss ); 365 365
Note: See TracChangeset
for help on using the changeset viewer.