Changeset 7414
- Timestamp:
 - Sep 11, 2010, 5:47:47 PM (15 years ago)
 - Location:
 - code/branches/ipv6/src/libraries/network
 - Files:
 - 
          
- 2 edited
 
- 
          LANDiscoverable.cc (modified) (2 diffs)
 - 
          LANDiscovery.cc (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/branches/ipv6/src/libraries/network/LANDiscoverable.cc
r7411 r7414 94 94 { 95 95 case ENET_EVENT_TYPE_CONNECT: 96 COUT(4) << "Received LAN discovery connect from client " << event.peer->host->receivedAddress << std::endl; 97 break; 96 98 case ENET_EVENT_TYPE_DISCONNECT: 97 99 case ENET_EVENT_TYPE_NONE: … … 100 102 if( strcmp( LAN_DISCOVERY_MESSAGE, (char*)event.packet->data ) == 0 ) // check for a suitable orxonox client 101 103 { 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; 103 105 packet::ServerInformation info; 104 106 info.setServerName("Orxonox Server");  - 
        
code/branches/ipv6/src/libraries/network/LANDiscovery.cc
r7411 r7414 80 80 case ENET_EVENT_TYPE_CONNECT: 81 81 { 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; 83 83 ENetPacket* packet = enet_packet_create(LAN_DISCOVERY_MESSAGE, strlen(LAN_DISCOVERY_MESSAGE)+1, ENET_PACKET_FLAG_RELIABLE); 84 84 enet_peer_send(event.peer, 0, packet); … … 88 88 { 89 89 packet::ServerInformation info(&event); 90 COUT(3) << " receivedserver 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; 91 91 std::vector<packet::ServerInformation>::iterator it; 92 92 for( it=this->servers_.begin(); it!=this->servers_.end(); ++it )  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






