- Timestamp:
- Jul 31, 2011, 9:09:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/network/LANDiscovery.cc
r8706 r8807 44 44 this->host_ = enet_host_create(NULL, 10, 0, 0, 0 ); 45 45 if ( this->host_ == NULL ) 46 COUT(1) << "LANDiscovery: host_ == NULL" << std::endl;46 orxout(internal_error, context::network) << "LANDiscovery: host_ == NULL" << endl; 47 47 } 48 48 … … 66 66 peer = enet_host_connect(this->host_, &address, 0, 0); 67 67 if (peer == NULL) 68 COUT(1) << "Error: Could not send LAN discovery to IPv4 Broadcast." << std::endl;68 orxout(internal_error, context::network) << "Could not send LAN discovery to IPv4 Broadcast." << endl; 69 69 70 70 /* IPv6 */ … … 72 72 peer = enet_host_connect(this->host_, &address, 0, 0); 73 73 if (peer == NULL) 74 COUT(1) << "Error: Could not send LAN discovery to IPv6 Multicast." << std::endl;74 orxout(internal_error, context::network) << "Could not send LAN discovery to IPv6 Multicast." << endl; 75 75 76 76 ENetEvent event; … … 81 81 case ENET_EVENT_TYPE_CONNECT: 82 82 { 83 COUT(4) << "Received LAN discovery connect from server " << event.peer->host->receivedAddress << std::endl;83 orxout(verbose, context::network) << "Received LAN discovery connect from server " << event.peer->host->receivedAddress << endl; 84 84 ENetPacket* packet = enet_packet_create(LAN_DISCOVERY_MESSAGE, strlen(LAN_DISCOVERY_MESSAGE)+1, ENET_PACKET_FLAG_RELIABLE); 85 85 enet_peer_send(event.peer, 0, packet); … … 89 89 { 90 90 packet::ServerInformation info(&event); 91 COUT(3) << "Received LAN discovery server information; Name: " << info.getServerName() << ", Address: " << info.getServerIP() << ", RTT: " << info.getServerRTT() << endl;91 orxout(internal_info, context::network) << "Received LAN discovery server information; Name: " << info.getServerName() << ", Address: " << info.getServerIP() << ", RTT: " << info.getServerRTT() << endl; 92 92 std::vector<packet::ServerInformation>::iterator it; 93 93 for( it=this->servers_.begin(); it!=this->servers_.end(); ++it )
Note: See TracChangeset
for help on using the changeset viewer.