[zeromq-dev] MSG_DONTWAIT on AIX/HP-UX

Tamara Kustarova kustarova at fastmq.com
Wed Nov 12 12:25:34 CET 2008

Hello Stephen,

thank you for info on MSG_DONTWAIT. Currently we replaced MSG_DONTWAIT
with fcntl function, to set socket to nonblocking mode. We use
O_NONBLOCK constant, as it works on all tested platforms. It was tested
on Linux, Solaris, FreeBSD, OpenBSD, Qnxnto, Mac OsX. Windows
implementation remains the same using ioctlsocket() function. 
The code can be found in revision 617. 
If you experience any problems using this, let us know, please.


On Wed, 2008-11-12 at 10:33 +0800, Steven McCoy wrote:
> 2008/11/11 Martin Sustrik <sustrik at fastmq.com>
>         >> because MSG_DONTWAIT doesn't exist on every system,
>         currently we use
>         >> fcntl function to set socket to nonblocking mode. It can be
>         found in
>         >> svn, revision 610.
> You can use fcntl() with platform appropriate flag (O_NONBLOCK,
> O_NDELAY, FIONBIO) for almost every platform, Windows you can use
> ioctlsocket(), and VMS/OS390 you can use ioctl().
> -- 
> Steve-o
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

More information about the zeromq-dev mailing list