[zeromq-dev] cmake support.
Tamara Kustarova
kustarova at fastmq.com
Tue Nov 11 12:14:53 CET 2008
Hi,
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. It uses O_NONBLOCK and it may not work correctly on
every aix version, although it is defined there. We don't have aix, so
we can't test it, but if you come across any bugs, please, let us know.
Tamara Kustarova
On Tue, 2008-11-11 at 03:14 -0600, George Neill wrote:
> Martin,
>
> On Tue, Nov 11, 2008 at 2:44 AM, Martin Sustrik <sustrik at fastmq.com> wrote:
> > George,
> >
> >> Okay! I have built libzmq and zmq_server successfully on aix, hpux,
> >> linux, solaris and win. As soon as I get this all cleaned up and the
> >> ancillary dirs added, i'll submit a patch. Unfortunately I don't have
> >> a darwin, qnx or *bsd box laying around at the moment, so hopefully
> >> one of you guys could help me out there?
> >
> > Yes, we can test it tomorrow.
> >
> > In the meantime: We haven't ever tested on aix or hpux. Have you had to do
> > any modification to the code to make it build?
>
> #if defined(ZMQ_HAVE_AIX) || defined(ZMQ_HAVE_HPUX)
> // MSG_DONTWAIT doesn't exist, must set socket non-blocking
> ssize_t nbytes = recv (r, buffer, 256, 0);
> #else
> ssize_t nbytes = recv (r, buffer, 256, MSG_DONTWAIT);
> #endif
>
> from libzmq, this is the only item I had to change on AIX (of course
> not a real fix, just something to get past the compile error). I
> suppose a private set_non_blocking(int fd) function should be created
> ... or something like that.
>
> I had a couple more to deal with on HPUX, I will try to send a patch
> (or the errors) for these tomorrow sometime.
>
> BTW, I am using xlc_r on AIX and aCC on HP/UX.
>
> Later,
> George.
> _______________________________________________
> 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