Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 31, 2011, 9:09:23 PM (13 years ago)
Author:
landauf
Message:

Replaced COUT with orxout in network library. Tried to set levels and contexts in a more or less useful way, but not really optimized. Used contexts network, packets, and master_server.
Please use endl instead of \n in the future (@smerkli) ;)

File:
1 edited

Legend:

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

    r8788 r8807  
    7171      this->host_ = enet_host_create( &bindAddress, 10, 0, 0, 0 );
    7272      if ( this->host_ == NULL )
    73           COUT(1) << "LANDiscoverable: host_ == NULL" << std::endl;
     73          orxout(internal_error, context::network) << "LANDiscoverable: host_ == NULL" << endl;
    7474    }
    7575    else
     
    9494      {
    9595        case ENET_EVENT_TYPE_CONNECT:
    96             COUT(4) << "Received LAN discovery connect from client " << event.peer->host->receivedAddress << std::endl;
     96            orxout(verbose, context::network) << "Received LAN discovery connect from client " << event.peer->host->receivedAddress << endl;
    9797            break;
    9898        case ENET_EVENT_TYPE_DISCONNECT:
     
    102102          if( strcmp( LAN_DISCOVERY_MESSAGE, (char*)event.packet->data ) == 0 )      // check for a suitable orxonox client
    103103          {
    104             COUT(3) << "Received LAN discovery message from client " << event.peer->host->receivedAddress << std::endl;
     104            orxout(internal_info, context::network) << "Received LAN discovery message from client " << event.peer->host->receivedAddress << endl;
    105105            packet::ServerInformation info;
    106106            info.setServerName("Orxonox Server");
Note: See TracChangeset for help on using the changeset viewer.