Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9585 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 28, 2006, 10:38:43 PM (18 years ago)
Author:
patrick
Message:

network nodes get added to the netmon

File:
1 edited

Legend:

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

    r9584 r9585  
    116116{
    117117  // body data length correct?
    118   if ( dataLength != INTSIZE )
     118  if ( dataLength != 2 * INTSIZE )
    119119  {
    120120    PRINTF(2)("new client message has wrong size: %d\n", dataLength );
     
    132132  PeerInfo* pInfo = new PeerInfo();
    133133  pInfo->bLocal = false;
    134   pInfo->ip = IP(ipHost, 0);
     134  pInfo->ip = IP(ipHost, 9999);
    135135  pInfo->nodeType = NET_CLIENT;
    136136  netMon->addNode(pInfo);
    137137
    138   PRINTF(0)("Got Signal: from %i new player arrived with userId: %i\n", senderId, newClientId);
     138  PRINTF(0)("Got Signal: from %i new player arrived with userId: %i and ip: %i\n", senderId, newClientId, pInfo->ip.ipString().c_str());
    139139  // part for the master server
    140140  if( SharedNetworkData::getInstance()->isMasterServer())
Note: See TracChangeset for help on using the changeset viewer.