Tuma Wang wrote:
> I see. So a common use it, when I do close(), FIN is sent, and the
To use the half-closed feature, shutdown() needs to
be used. After a close(), the socket cannot be used
to read anything.
> peer will get an EOL when it read(). When getting the EOF, the peer
> knows about the "half-close" state, and then it can either send data
> or also call close(). Is it right?
Right. It is the application which decides what to do.
> So "without the knowledge of the other end" means "the other side
> doesn't know my crash here"? And we say the other side (not the side
> that crashes) is in "half-open"?
Right.
--
K. Poon.
[EMAIL PROTECTED]
_______________________________________________
networking-discuss mailing list
[email protected]