Setting a socket
to be 'non-blocking' simply means that the library is instructed not to block
when it is called. So, if accept is called on a socket, and there are no
connections pending, rather than waiting for one, control will be returned to
the calling block. To set a non-blocking socket, the ioctlsocket
function is used, specifying FIONBIO as the parameter, and 1 as the
argument.
See Also
No comments:
Post a Comment