Changeset 5418 for source


Ignore:
Timestamp:
Jul 29, 2009, 2:16:02 PM (15 years ago)
Author:
mies
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/transport/rfcomm/rfcomm.cpp

    r5410 r5418  
    1010#include <memory.h>
    1111#include <deque>
     12#include <cerrno>
    1213
    1314namespace ariba {
     
    202203void rfcomm::handle_accept(const error_code& error, link_info* info) {
    203204        if (error) {
    204                 logging_error( "Error waiting for new connections: " << error
     205                logging_error( "Error waiting for new connections. Error code: "<< strerror(errno)
    205206                                << ", trying to recover (attempt " << accept_retries << ")");
    206207
     
    238239void rfcomm::handle_connect( const error_code& error, link_info* info ) {
    239240        if (error) {
    240                 logging_error( "Can not connect. Retrying ... "
     241                logging_error( "Can not connect. Error code: "<< strerror(errno) << " Retrying ... "
    241242                                "(attempt " << info->connect_retries << ")" );
    242243
     
    298299        // handle error
    299300        if (error) {
    300                 logging_error("Failed to receive message payload.");
     301                logging_error("Failed to receive message payload. Error code: "<< strerror(errno));
    301302                shutdown(info);
    302303                return;
     
    334335        // check error
    335336        if (error) {
    336                 logging_error("Failed to receive message payload.");
     337                logging_error("Failed to receive message payload. Error code: "<< strerror(errno));
    337338                shutdown(info);
    338339                return;
     
    391392        // handle error
    392393        if (error) {
    393                 logging_error( "Message sent error" );
     394                logging_error( "Message sent error. Error code: "<< strerror(errno) );
    394395                shutdown(info);
    395396                return;
Note: See TracChangeset for help on using the changeset viewer.