Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 23, 2006, 12:08:34 PM (18 years ago)
Author:
patrick
Message:

network: synchronizeable and network manager start of new concept implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/network/network_manager.cc

    r6341 r6654  
    4949  this->netStreamList = NULL;
    5050  this->syncList = NULL;
    51   this->tmpStream = NULL;
     51  this->defaultSyncStream = NULL;
    5252
    5353  this->hostID = -1;
     
    9898  }
    9999
    100   this->tmpStream = new NetworkStream(ipAddress);
     100  this->defaultSyncStream = new NetworkStream(ipAddress);
    101101  return 1;
    102102}
     
    111111  this->hostID = 0;
    112112  this->bGameServer = true;
    113   this->tmpStream = new NetworkStream(port);
     113  this->defaultSyncStream = new NetworkStream(port);
    114114  this->bGameServer = true;
    115115  SDL_Delay(20);
     
    126126{
    127127  /* creating a new network stream, it will register itself automaticaly to the class list */
    128   this->tmpStream = new NetworkStream(address);
    129   this->tmpStream->connectSynchronizeable(sync);
     128  this->defaultSyncStream = new NetworkStream(address);
     129  this->defaultSyncStream->connectSynchronizeable(sync);
    130130}
    131131
     
    142142void NetworkManager::connectSynchronizeable(Synchronizeable& sync)
    143143{
    144   this->tmpStream->connectSynchronizeable(sync);
     144  this->defaultSyncStream->connectSynchronizeable(sync);
    145145}
    146146
Note: See TracChangeset for help on using the changeset viewer.