Given FILE* stream = fdopen(sfd,"r+"), where sfd refers to the file descriptor of a socket, is there any function that takes a FILE* as parameter and is able to shutdown a part of the socket (ie, close the socket for write processes)?
Or, alternatively: Is it safe to use shutdown (as described in shutdown(3)) (preceeded by an invocation of fflush() of course), when I already invoked fdopen on the socket file descriptor? I wasn't able to find the answer in the man pages (nor on the internet).
Thanks.