Is there a way to close a Unix socket for only reading or writing?
- by Sii
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.