Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] : how to monitor a tcp socket
From: Igor R (boost.lists_at_[hidden])
Date: 2008-11-06 05:32:19


I'm not sure there exists a good portable solution for this.
As for windows platforms, the following article can be useful:
http://tangentsoft.net/wskfaq/newbie.html
(pp. 2.12, 2.13, 2.14)

> I am using asynchronous operations, but i have an issue, I'd like to
> trigger a *fast *client side deconnexion when the peer disappear (is
> reset for example)
> So far, the deconnexion occurs on an error on a asynchronous read
> operation, but this error happens like 10-12 seconds after the physical
> deconnexion occured.
> Is there a way to set the "time out" value ? Is there another way to
> detected that the peer vanished.


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