logo       

Testing socket for disconnect: msg#00032

lib.boost.asio.user

Subject: Testing socket for disconnect

Hi,

What is 'ASIO-approved' way to check if TCP socket had been disconnected by
remote peer while no outstanding read/write operation.

Related question - Did I understand correctly that if I have an outstanding
read/write it will be completed with asio::error:: connection_aborted error
on remote peer disconnect ? .

Stas



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise