$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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..