Changeset 5650 in orxonox.OLD for branches/network/src/subprojects/network/network_unit_test.cc
- Timestamp:
- Nov 20, 2005, 3:39:38 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/subprojects/network/network_unit_test.cc
r5649 r5650 10 10 #include "network_stream.h" 11 11 #include "synchronizeable.h" 12 13 #include "simple_sync.h" 12 14 13 15 int verbose = 4; … … 123 125 //SDLNet_ResolveHost(&ip, "127.0.0.1", 9999); 124 126 SDLNet_ResolveHost(&ip, "localhost", 9999); 125 Synchronizeable sync; 127 Synchronizeable* clientSync = new SimpleSync(); 128 Synchronizeable* serverSync = new SimpleSync(); 129 126 130 127 131 … … 133 137 134 138 /* create a server stream */ 135 nm->createServer( sync, 9999);139 nm->createServer(*serverSync, 9999); 136 140 137 141 /* esatblish a connection */ 138 nm->establishConnection(ip, sync);142 nm->establishConnection(ip, *clientSync); 139 143 140 144 /* synchronize the data 1 time (increment for longer tests) */
Note: See TracChangeset
for help on using the changeset viewer.