I am trying to mark a socket non-blocking:
if (0 != fcntl (server->socket, F_SETFL, O_NONBLOCK))
{
/* error handling */
}
However, this only seams to work, if I do this after calling listen
/bind
not before it.
Are there silent prerequisites about these calls?
I haven’t found anything regarding this behavior in a man
page.