Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost-users Digest, Vol 3349, Issue 1
From: Torsten_at_[hidden]
Date: 2013-02-04 08:31:04


Hi Igor,

Am 04.02.2013 um 14:15 schrieb boost-users-request_at_[hidden]:

> Send Boost-users mailing list submit

>>
>> s.close(); // first time to cancel outstanding handlers
>> s.close(); // a second time, later in the d'tor

>> But what does 'Bad file descriptor' mean in this context? Is the underlying socket is somehow broken/corrupted? If so, there must be
>> a bug in my code. If not, is it save to simply ignore the error?
>
>
> It means that tcp::socket is closed (and the underlying native
> descriptor is something like -1).

do you think there is something wrong with closing the socket a second time? The documentation doesn't states any precondition.

kind regards
Torsten


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net