Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9553 in orxonox.OLD for branches/proxy/src/lib


Ignore:
Timestamp:
Jul 28, 2006, 11:58:26 AM (18 years ago)
Author:
patrick
Message:

found a bug in the debug output and switched implementation

Location:
branches/proxy/src/lib/network
Files:
2 edited

Legend:

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

    r9551 r9553  
    650650              else if ( SharedNetworkData::getInstance()->isProxyServerActive() && it->second.isClient() )
    651651              {
    652                 PRINTF(0)("Handshake: Proxy in server role: connecting %i, key: %i\n", it->second.userId, it->first);
     652                PRINTF(0)("Handshake: Proxy in server role: connecting %i\n", it->second.userId);
    653653
    654654                it->second.ip = it->second.socket->getRemoteAddress();
     
    657657
    658658                // work with the ProxyControl to init the new client
    659                 PRINTF(0)("userId realy realy is: %i and key: %i\n", it->second.userId, it->first);
    660659                ProxyControl::getInstance()->signalNewClient( it->second.userId);
    661660
  • branches/proxy/src/lib/network/proxy/proxy_control.cc

    r9543 r9553  
    7979void ProxyControl::signalNewClient(int userId)
    8080{
    81   PRINTF(0)("Signaling new Client: %i\n");
     81  PRINTF(0)("Signaling new Client: %i\n", userId);
    8282  // make sure we are a proxy server
    8383  assert(SharedNetworkData::getInstance()->isProxyServerActive());
    8484
    85   byte * data = new byte[INTSIZE];
     85  byte data[INTSIZE];
    8686
    8787  assert( Converter::intToByteArray( userId, data + INTSIZE, INTSIZE ) == INTSIZE );
     
    114114  assert( Converter::byteArrayToInt( data, &userId) == INTSIZE );
    115115
    116   PRINTF(0)("Got Signal: new player arrived with userId: %i\n", userId);
     116  PRINTF(0)("Got Signal: from %i new player arrived with userId: %i\n", senderId, userId);
    117117  // part for the master server
    118118  if( SharedNetworkData::getInstance()->isMasterServer())
Note: See TracChangeset for help on using the changeset viewer.