Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 25, 2006, 10:15:18 AM (19 years ago)
Author:
patrick
Message:

making the node id system as consistant as possible

File:
1 edited

Legend:

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

    r9447 r9449  
    182182 * @param port: the port number
    183183 */
    184 void NetworkStream::connectToMasterServer(std::string host, int port)
     184int NetworkStream::connectToMasterServer(std::string host, int port)
    185185{
    186186  int node = this->peers.size();
     
    192192  this->peers[node].connectionMonitor = new ConnectionMonitor( 0 );
    193193  this->peers[node].ip = this->peers[node].socket->getRemoteAddress();
     194
     195  return node;
    194196}
    195197
     
    200202 * @param port: the port number
    201203 */
    202 void NetworkStream::connectToProxyServer(std::string host, int port)
     204int NetworkStream::connectToProxyServer(std::string host, int port)
    203205{
    204206  int node = this->peers.size();
     
    212214  this->peers[node].connectionMonitor = new ConnectionMonitor( 0 );
    213215  this->peers[node].ip = this->peers[node].socket->getRemoteAddress();
     216
     217  return node;
    214218}
    215219
Note: See TracChangeset for help on using the changeset viewer.