Boost logo

Boost :

From: christopher baus (christopher_at_[hidden])
Date: 2006-01-12 17:06:12


>
> For a TCP socket, I would expect it to return eof, since that is how TCP
> sockets work.

read() and recv() return 0 as the number of bytes read when the socket is
shutdown for reading. AFAIK, that's the only way to determine that state
from the socket API.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk