Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2005, 1:42:57 PM (18 years ago)
Author:
bwuest
Message:

Network changes

File:
1 edited

Legend:

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

    r6059 r6060  
    127127}
    128128
     129void NetworkStream::disconnectSynchronizeable(Synchronizeable& sync)
     130{
     131  this->synchronizeables.remove(&sync);
     132
     133  if( this->networkSockets.size()<=0 )
     134    this->bActive = false;
     135}
     136
    129137
    130138void NetworkStream::processData()
     
    241249        for (SynchronizeableList::iterator it = synchronizeables.begin(); it!=synchronizeables.end(); it++)
    242250        {
    243           if ( *it && (*it)->getUniqueID()==header.uniqueID )
     251          if ( *it && (*it)->getUniqueID()==header.synchronizeableID )
    244252            (*it)->writeBytes(upBuffer+sizeof(header), dataLength);
    245253        }
Note: See TracChangeset for help on using the changeset viewer.