On Jun 22, 7:45 am, Bill Roome <
w...@alcatel-lucent.com> wrote:
> Folks,
>
> When reading from a TCP socket, how can I get notified that the other
> end has closed the socket? I understand the basic mechanism:
> Socket::Recv() returns a packet with no bytes.
>
> But as far as I can tell, Socket only calls the Recv callback when
> data is actually available; it doesn't notify me when it has EOF
> without data. So if I only call Recv() when triggered by the read
> callback, I'll never know to call Recv() to get that empty packet.