Boost logo

Boost Users :

Subject: [Boost-users] boost::asio close TCP connection cleany
From: Marco Piacentini (marcopiacenta_at_[hidden])
Date: 2011-03-22 03:44:29


Hy..I've seen in the tutorial that client side disconnect is called simply by a break in the read loop. I would like to know which is the step-by-step instruction to close correctly a TCP connection (both server and client side) and where I have to put them. I've seen the close and shutdown functions, but I don't know where call them. Finally...what I can do when an EOF error happens?? thank you..



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