
26 Oct
2009
26 Oct
'09
9:14 p.m.
"Andrey Tcherepanov" <moyt63c02@sneakemail.com> wrote in message news:op.u17hoeykefd2ob@andrey-laptop.sod.shaw.ca...
socket.close(boost::system::error_code());
after 1996 (after C++ Exception Handling was introduced) I did not call close() anymore directly in my code -- it usually resides in a destructor. I also wonder what error code could close possibly return? LINUX man page tells me that there is * EBADF which cannot happen if the constructor was successful. * EINTR which should be dealt with in the destructor by calling close repeatedly