Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 11, 2010, 5:47:47 PM (14 years ago)
Author:
adrfried
Message:

some debug output fixed

Location:
code/branches/ipv6/src/libraries/network
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ipv6/src/libraries/network/LANDiscoverable.cc

    r7411 r7414  
    9494      {
    9595        case ENET_EVENT_TYPE_CONNECT:
     96            COUT(4) << "Received LAN discovery connect from client " << event.peer->host->receivedAddress << std::endl;
     97            break;
    9698        case ENET_EVENT_TYPE_DISCONNECT:
    9799        case ENET_EVENT_TYPE_NONE:
     
    100102          if( strcmp( LAN_DISCOVERY_MESSAGE, (char*)event.packet->data ) == 0 )      // check for a suitable orxonox client
    101103          {
    102             COUT(4) << "Received LAN discovery message from " << event.peer->host << std::endl;
     104            COUT(3) << "Received LAN discovery message from client " << event.peer->host->receivedAddress << std::endl;
    103105            packet::ServerInformation info;
    104106            info.setServerName("Orxonox Server");
  • code/branches/ipv6/src/libraries/network/LANDiscovery.cc

    r7411 r7414  
    8080        case ENET_EVENT_TYPE_CONNECT:
    8181        {
    82           COUT(4) << "connect from server: " << event.peer->address << endl;
     82          COUT(4) << "Received LAN discovery connect from server " << event.peer->host->receivedAddress << std::endl;
    8383          ENetPacket* packet = enet_packet_create(LAN_DISCOVERY_MESSAGE, strlen(LAN_DISCOVERY_MESSAGE)+1, ENET_PACKET_FLAG_RELIABLE);
    8484          enet_peer_send(event.peer, 0, packet);
     
    8888          {
    8989            packet::ServerInformation info(&event);
    90             COUT(3) << "received server information; Name: " << info.getServerName() << ", Address: " << info.getServerIP() << ", RTT: " << info.getServerRTT() << endl;
     90            COUT(3) << "Received LAN discovery server information; Name: " << info.getServerName() << ", Address: " << info.getServerIP() << ", RTT: " << info.getServerRTT() << endl;
    9191            std::vector<packet::ServerInformation>::iterator it;
    9292            for( it=this->servers_.begin(); it!=this->servers_.end(); ++it )
Note: See TracChangeset for help on using the changeset viewer.