fcntl() - ioctlsocket()
Hi Group,
for porting issues, I need to translate a fcntl(). In the original
*nix-code the following is used:
fcntl(sd, F_SETFL, O_NONBLOCK);
to make sd a non blocking socket. Now I was wondering if
// If iMode = 0, blocking is enabled;
// If iMode != 0, non-blocking mode is enabled.
int iMode = 1;
ioctlsocket(sd, FIONBIO, (u_long FAR*) &iMode)
contains the same behaviour for win32 systems.
Many kind greetings,
--wim
|