Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 16, 2005, 1:10:40 AM (18 years ago)
Author:
patrick
Message:

network: some little more error checking in the sync function

File:
1 edited

Legend:

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

    r5575 r5578  
    7575  /* set the class id for the base object */
    7676  this->setClassID(CL_NETWORK_MANAGER, "NetworkManager");
     77 
    7778  /* initialize the references */
    7879  this->netStreamList = NULL;
     
    102103 */
    103104void NetworkManager::shutdown()
    104 {}
     105{
     106
     107}
    105108
    106109
     
    112115NetworkStream& NetworkManager::establishConnection(/* address, port, object reference*/)
    113116{
    114   /* creating a new network stream */
     117  /* creating a new network stream, it will register itself automaticaly to the class list */
    115118  NetworkStream* netStream = new NetworkStream();
    116119}
     
    129132 */
    130133void NetworkManager::synchronize()
    131 {}
     134{
     135  if (this->netStreamList != NULL || (this->netStreamList = ClassList::getList(CL_NETWORK_STREAM)) != NULL)
     136  {
     137   
     138  }
     139
     140}
    132141
    133142
Note: See TracChangeset for help on using the changeset viewer.