Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9446 in orxonox.OLD for branches/proxy/src


Ignore:
Timestamp:
Jul 25, 2006, 9:31:01 AM (18 years ago)
Author:
patrick
Message:

cleanup of the code

File:
1 edited

Legend:

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

    r9441 r9446  
    185185{
    186186  int node = this->peers.size();
     187  // this create the new node in the peers map
    187188  this->peers[node].socket = new UdpSocket( host, port );
    188189  this->peers[node].userId = 0;
     
    331332      this->handleReconnect( 0);
    332333    }
    333 
    334     PRINTF(0)("node count: %i\n", peers.size());
    335     for ( PeerList::iterator it = peers.begin(); it != peers.end(); it++ )
    336     {
    337       PRINTF(0)("still got peer: %s\n", it->second.ip.ipString().c_str());
    338     }
    339334  }
    340335
     
    380375          clientId = it->first + 1;
    381376    }
     377    // this creates a new entry in the peers list
    382378    peers[clientId].socket = tempNetworkSocket;
    383379
     
    623619
    624620  // disconnect from the current server and reconnect to proxy server
    625 //   pInfo->socket->reconnectToServer( proxyIP.ipString(), proxyIP.port());
    626621  this->handleDisconnect( userId);
    627622  this->connectToProxyServer(proxyIP.ipString(), 9999);
    628 #warning the ports are not yet integrated correctly in the ip class
     623  #warning the ports are not yet integrated correctly in the ip class
    629624
    630625  // and restart the handshake
    631 //   this->startHandshake( userId);
     626  this->startHandshake( userId);
    632627}
    633628
     
    661656  this->freeSocketSlots.push_back( userId );
    662657
    663   PRINTF(0)("nodes: %i\n", peers.size());
    664658  peers.erase( userId);
    665   PRINTF(0)("nodes: %i\n", peers.size());
    666 
    667 //   this->pInfo->userId = 0;
    668 //   this->pInfo->lastAckedState = 0;
    669 //   this->pInfo->lastRecvedState = 0;
    670 //   this->pInfo->connectionMonitor = NULL;
    671 //   this->pInfo->handshake = NULL;
    672 //   this->pInfo->socket = NULL;
    673 //   this->pInfo->nodeType = NET_CLIENT;
    674659}
    675660
Note: See TracChangeset for help on using the changeset viewer.