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..