Changeset 10470


Ignore:
Timestamp:
Apr 27, 2011, 9:55:15 AM (8 years ago)
Author:
tbretz
Message:
Removed using error_code directly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/dclient5.cc

    r10426 r10470  
    5454        // 125: Operation canceled
    5555
    56         if (error && error!=bs::error_code(125, bs::system_category))
     56        if (error && error!=ba::error::basic_errors::operation_aborted)
    5757        {
    5858            stringstream str;
    5959
    6060            str << "HandleReadTimeout: " << error.message() << " (" << error << ")";// << endl;
    61             if (error==bs::error_code(2, ba::error::misc_category))
     61            if (error==bs::error::misc_errors::eof)
    6262                Warn(str); // Connection: EOF (closed by remote host)
    6363            else
     
    8484            // 107: Transport endpoint is not connected
    8585            // 125: Operation canceled
    86             if (error && error!=bs::error_code(107, bs::system_category))
     86            if (error && error!=bs::basic_errors::not_connected)
    8787            {
    8888                stringstream str;
     
    9090                Error(str);
    9191            }
    92             PostClose(error!=bs::error_code(125, bs::system_category));
     92            PostClose(error!=ba::error::basic_errors::operation_aborted);
    9393            return;
    9494        }
Note: See TracChangeset for help on using the changeset viewer.