Boost logo

Boost Users :

Subject: [Boost-users] Monitor lost client data connections
From: jupiter (jupiter.hce_at_[hidden])
Date: 2017-02-23 10:09:46


Hi,

I have a server socket connected by many clients using
boost::asio::ip::tcp::socket to set up server socket connection and to use
boost::asio::ip::tcp::acceptor async_accept for new client connections. The
client may come and go, so I need to check if the connection is still valid
or not before sending message to clients. How can I check if a client
connection is no longer valid? My server does not seem get any indication
when a client terminate the connection.

Thank you.

Kind regards,

- j



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