
Do you have any ideas on how to do this within the ASIO framework? Andrew On Tue, Dec 15, 2009 at 2:50 PM, Scott Gifford <sgifford@suspectclass.com> wrote:
Jonathan Franklin <franklin.jonathan@gmail.com> writes:
On Mon, Dec 14, 2009 at 10:52 AM, Nicola Michael Gutberlet <nicola.gutberlet@hhi.fraunhofer.de> wrote:
I’m using TCP sockets and wonder, if there’s a possibility to get an automatic notification when one side of a socket is closed (even if the other side is crashed / not closed properly).
You generally have to do a read on the socket to reliably detect when the other side has closed (or crashed).
And a write, too, or else use TCP keepalives. Otherwise a crashed client which is never sending anything will not send any error indication for you to read.
----Scott. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- ___________________________________________ Andrew J. P. Maclean Centre for Autonomous Systems The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Ph: +61 2 9351 3283 Fax: +61 2 9351 7474 URL: http://www.acfr.usyd.edu.au/ ___________________________________________