Is there a way to close a Unix socket for only reading or writing?
Posted
by Sii
on Stack Overflow
See other posts from Stack Overflow
or by Sii
Published on 2010-04-06T20:49:55Z
Indexed on
2010/04/06
20:53 UTC
Read the original article
Hit count: 197
Is there a way to only close "one end" of a TCP socket to cleanly indicate one side of a connection is done writing to the connection? (Just like you do with a pipe in every Unix pipe tutorial ever.) Or should I use some in-band solution like a sentinel value or some such?
I only found shutdown() in the libc documentation and that doesn't seem like it does what I want.
© Stack Overflow or respective owner