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/ServerConnection.cc

    r8788 r8807  
    6161  {
    6262    if (enet_address_set_host (this->bindAddress_, bindAddress.c_str()) < 0)
    63         COUT(1) << "Error: Could not resolve \"" << bindAddress << "\"." << std::endl;
     63        orxout(internal_error, context::network) << "Could not resolve \"" << bindAddress << "\"." << endl;
    6464  }
    6565
     
    7575    if ( this->host_ == NULL )
    7676    {
    77         COUT(1) << "ServerConnection: host_ == NULL" << std::endl;
     77        orxout(internal_error, context::network) << "ServerConnection: host_ == NULL" << endl;
    7878        return false;
    7979    }
     
    8383    assert( this->host_->socket4 != ENET_SOCKET_NULL || this->host_->socket6 != ENET_SOCKET_NULL );
    8484    if (this->host_->socket4 == ENET_SOCKET_NULL)
    85         COUT(2) << "Warning: IPv4 Socket failed." << std::endl;
     85        orxout(internal_warning, context::network) << "IPv4 Socket failed." << endl;
    8686    else if (this->host_->socket6 == ENET_SOCKET_NULL)
    87         COUT(2) << "Warning: IPv6 Socket failed." << std::endl;
     87        orxout(internal_warning, context::network) << "IPv6 Socket failed." << endl;
    8888    else
    89         COUT(3) << "Info: Using IPv4 and IPv6 Sockets." << std::endl;
     89        orxout(internal_info, context::network) << "Using IPv4 and IPv6 Sockets." << endl;
    9090   
    9191    // start communication thread
     
    114114//       ClientInformation *temp = ClientInformation::findClient(clientID);
    115115//       if(!temp){
    116 //         COUT(3) << "C.Man: addPacket findClient failed" << std::endl;
     116//         orxout(internal_warning, context::network) << "C.Man: addPacket findClient failed" << endl;
    117117//       }
    118118      Connection::addPacket(packet, clientID, channelID);
Note: See TracChangeset for help on using the changeset viewer.