|
Boost Users : |
Subject: Re: [Boost-users] asio error codes
From: Andreas Wehrmann (a.wehrmann_at_[hidden])
Date: 2011-10-05 02:03:07
On 10/05/2011 12:30 AM, Christopher Pisz wrote:
>
> Well, my main concern is for reads and writes over tcp. Determining if my
> connection has been dropped or is unrecoverable, or if I should retry the read
> or write.
>
> I see lots of 'no so self explanatory' error codes in the list of possibles.
> Such as,
> "Operation already in progress"
> "access_denied"
> "operation_aborted"
>
> knowing when and why these occur dictates how I would handle them and whether
> I'd give up or retry.
>
>
>
>
>
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
The usual way to find out whether a TCP connection is "broken"
or not is to facilitate a high level heartbeat mechanism.
By "high level" I mean the application layer.
At least that's how I do it :-)
Regards
-- Dipl.-Ing. (FH) Andreas Wehrmann Software Development -------------------------------------------------------------- Center Communication Systems GmbH A-1210 Wien, Ignaz-Köck-Straße 19 Sitz in Wien FN 796 88p, Firmenbuchgericht Wien www.centersystems.com Tel.: +43 (0) 190 199 - 3616 Mobile: +43 (0) 664 884 75916 Fax: +43 (0) 190 199 - 2110 E-Mail: a.wehrmann_at_[hidden]
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