Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
May 15, 2006, 2:49:23 PM (19 years ago)
Author:
rennerc
Message:

added some output so synchronizeable to find strange bug. did not help :(

Location:
branches/network/src/subprojects/network
Files:
3 edited

Legend:

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

    r7613 r7617  
    191191  printf("=================\n");
    192192
    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") );
    195195
    196196  unsigned int port = 9999;
     
    258258  netMan->createServer(/**ss, */ 9999);
    259259 
    260   SimpleSync* ss = new SimpleSync("Server\0");
     260  SimpleSync* ss = new SimpleSync("Server");
    261261
    262262 
     
    292292  netMan->establishConnection("localhost", 9999);
    293293 
    294   SimpleSync* ss = new SimpleSync("SimpleSync\0");
     294  SimpleSync* ss = new SimpleSync("SimpleSync");
    295295  netMan->connectSynchronizeable( *ss );
    296296
  • branches/network/src/subprojects/network/simple_sync.cc

    r7614 r7617  
    2828 *  default constructor
    2929 */
    30 SimpleSync::SimpleSync(const char* name)
    31   : Synchronizeable()
     30SimpleSync::SimpleSync( std::string name )
    3231{
    3332  setName( name );
    3433  in = 0;
    3534  out = 1;
    36   id = registerVarId( new SynchronizeableInt( &in, &out, "var" ) );
     35  id = this->registerVarId( new SynchronizeableInt( &in, &out, "var", PERMISSION_ALL ) );
    3736}
    3837
  • branches/network/src/subprojects/network/simple_sync.h

    r7613 r7617  
    1313  {
    1414  public:
    15     SimpleSync(const char* name);
     15    SimpleSync( std::string name);
    1616    virtual ~SimpleSync();
    1717   
Note: See TracChangeset for help on using the changeset viewer.