Changeset 7617 in orxonox.OLD for branches/network/src/subprojects
- Timestamp:
- May 15, 2006, 2:49:23 PM (19 years ago)
- Location:
- branches/network/src/subprojects/network
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/subprojects/network/network_unit_test.cc
r7613 r7617 191 191 printf("=================\n"); 192 192 193 Synchronizeable* clientSync = new SimpleSync( "Client\0");194 Synchronizeable* serverSync = new SimpleSync( "Server\0");193 Synchronizeable* clientSync = new SimpleSync( std::string("Client") ); 194 Synchronizeable* serverSync = new SimpleSync( std::string("Server") ); 195 195 196 196 unsigned int port = 9999; … … 258 258 netMan->createServer(/**ss, */ 9999); 259 259 260 SimpleSync* ss = new SimpleSync("Server \0");260 SimpleSync* ss = new SimpleSync("Server"); 261 261 262 262 … … 292 292 netMan->establishConnection("localhost", 9999); 293 293 294 SimpleSync* ss = new SimpleSync("SimpleSync \0");294 SimpleSync* ss = new SimpleSync("SimpleSync"); 295 295 netMan->connectSynchronizeable( *ss ); 296 296 -
branches/network/src/subprojects/network/simple_sync.cc
r7614 r7617 28 28 * default constructor 29 29 */ 30 SimpleSync::SimpleSync(const char* name) 31 : Synchronizeable() 30 SimpleSync::SimpleSync( std::string name ) 32 31 { 33 32 setName( name ); 34 33 in = 0; 35 34 out = 1; 36 id = registerVarId( new SynchronizeableInt( &in, &out, "var") );35 id = this->registerVarId( new SynchronizeableInt( &in, &out, "var", PERMISSION_ALL ) ); 37 36 } 38 37 -
branches/network/src/subprojects/network/simple_sync.h
r7613 r7617 13 13 { 14 14 public: 15 SimpleSync( const char*name);15 SimpleSync( std::string name); 16 16 virtual ~SimpleSync(); 17 17
Note: See TracChangeset
for help on using the changeset viewer.