Hi,
I have a socket that I use for read/write. When created, the socket is
blocking by default. I want it to be blocking sometimes and
non-blocking other times. I have succeeded in switching from Blocking
to Non-blocking using
fcntl(socket, F_SETFL, O_NONBLOCK);
but now I want to set it back to blocking. Is there something like
fcntl(socket, F_SETFL, O_BLOCK);
around? I cannot find a way to set it back to blocking. Thanks for any
suggestions!
-Chris