Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 30, 2005, 1:52:26 AM (18 years ago)
Author:
bensch
Message:

orxonox/branches/newtork: merged the network branche for merging to the trunk
confilcts maily resolved in favor of trunk with some minor fixes

merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/network . -r6146:HEAD

File:
1 edited

Legend:

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

    r6139 r6340  
    4444  /* set the class id for the base object */
    4545  this->setClassID(CL_NETWORK_MANAGER, "NetworkManager");
     46  PRINTF(0)("START\n");
    4647
    4748  /* initialize the references */
     
    4950  this->syncList = NULL;
    5051  this->tmpStream = NULL;
     52
    5153  this->hostID = -1;
    5254  this->bGameServer = false;
     
    107109int NetworkManager::createServer(unsigned int port)
    108110{
     111  this->hostID = 0;
     112  this->bGameServer = true;
    109113  this->tmpStream = new NetworkStream(port);
    110114  this->bGameServer = true;
     
    124128  this->tmpStream = new NetworkStream(address);
    125129  this->tmpStream->connectSynchronizeable(sync);
    126 }
    127 
    128 
    129 /**
    130  *  creates a new NetworkStream of server type
    131  * @param sync: the listener
    132  */
    133 NetworkStream& NetworkManager::createServer(Synchronizeable& sync, unsigned int port)
    134 {
    135   PRINTF(0)("Create a new server socket\n");
    136   /* creating a new network stream, it will register itself automaticaly to the class list */
    137   this->tmpStream = new NetworkStream(port);
    138   this->tmpStream->connectSynchronizeable(sync);
    139   this->bGameServer = true;
    140130}
    141131
     
    178168void NetworkManager::setHostID(int id)
    179169{
    180   this->hostID = id;
     170    this->hostID = id;
    181171}
Note: See TracChangeset for help on using the changeset viewer.