Boost logo

Boost Users :

Subject: [Boost-users] asio, check remote socket open
From: Lloyd (lloyd_at_[hidden])
Date: 2010-07-08 10:04:11


I have a server application. It listens for connection and receives data. when data is received, the receive "handler routine" is called. Inside the handler there is async timer. This timer's handler again initiates a new timer.This keeps on executing. During this time, the remote client which connects to the server closes the connection "intentionally". Inside the timer handler routine, is there any way to chek the connection is closed or not? (From the timer handler, I can access the socket and io_service).

I have tried with

socket::is_open(), socket::remote_endpoint(), they are successfull and does not throw any exception.

Thanks a lot,

Scanned and protected by Email scanner

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at