On Thursday 2014-07-17 00:02, Jonas 'Sortie' Termansen wrote:
>
>* ioctl(FIONBIO) is used in a few files to make sockets non-blocking
>  rather than using fcntl to set the the standard O_NONBLOCK bit. The
>  files apps/s_client.c and apps/s_server.c should use BIO_socket_nbio()
>  instead of directly using BIO_socket_ioctl(). The bio/b_sock.c file
>  should implement BIO_shock_nbio() using fcntl, F_GETFL/F_SETFL and
>  O_NONBLOCK.

There's likely a reason for that.

O_NONBLOCK is not available in the mingw toolchain, which I take
as an indicator that the Windows runtime does not know it either.

However, FIONBIO _is_ available; the function call is along the
lines of
        ioctlsocket(fd, ..FIONBIO..);

Reply via email to