Hi,
what is the consequence of reading from a TCP socket but the other
end has been closed? Will the data received be retained until I read it?
Thanks.
-David
Hi,
what is the consequence of reading from a TCP socket but the other
end has been closed? Will the data received be retained until I read it?
Thanks.
-David
If the other end of the socket was closed normally, then any data thatQuote:>Hi,
> what is the consequence of reading from a TCP socket but the other
>end has been closed? Will the data received be retained until I read it?
> Thanks.
>-David
If the other end was aborted, then buffered data may be discarded
and read() or recv() calls will return -1 with a suitable value
in errno.
You might want to take a look at the unix-socket-faq, regularly
posted here and in news.answers, comp.answers and comp.unix.answers,
and also available at:
http://www.auroraonline.com/sock-faq
http://kipper.york.ac.uk/~vic/sock-faq
ftp://rtfm.mit.edu/pub/usenet/news.answers/unix-faq/socket
"How is this place run - is it an anarchy?"
"No, I wouldn't say so; it is not that well organised..."
1. Help! TCP connection closed by foreign host
You might have accidentaly uninstalled tcpd
3. How can i detect that a client has closed a TCP-stream connection ???
4. How can I setup defaults for TextEdit ?
5. Netscape server not closing TCP connection
6. ? kernel panic while installing?
7. How do you flush wierd CLOSE-state TCP connections?
9. : How to determine if a (TCP) socket has closed without reading
10. Closing Bad TCP Connections
11. How can I close an active TCP connection?
13. Problem with TCP Connection Close