Boost logo

Boost :

Subject: [boost] [ASIO/System] Checking error_code
From: Carlo Medas (carlomedas_at_[hidden])
Date: 2008-10-29 07:11:21


Dears,
sorry for disturbing with peraphs stupid question, but I'm really hung: I'm
not able to check the error code (boost::system::error_code) for a specific
'End of File' type.

When I print it, it's 'End of file', with int value = 2.

But how to check it?

I tried with something like:

if (error.default_error_condition() ==
boost::system::error_condition(boost::system::errc::XXX))
{
   ...
}

But I don't know what to put in the XXX.

Br and thanks,

\Carlo Medas


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk