[zeromq-dev] zmq_poll

Serge Aleynikov serge at aleynikov.org
Tue May 25 13:48:13 CEST 2010

This is indeed a much cleaner approach!  I'll modified the patch.

Now we have:

int zmq_getsockopt(void *s, int option, void *optval, size_t optvallen);
int zmq_process (void *app_thread_);

Only three get options are supported for now:

#define ZMQ_APP_THREAD 126
#define ZMQ_WAITFD     127
#define ZMQ_EVENTS     128

The argument to zmq_process is still left as app_thread, but this can be 
changed later to a 0MQ socket (and deprecate ZMQ_APP_THREAD) when Martin 
does performance testing related to merging app_thread and socket.


On 5/25/2010 3:05 AM, Steven McCoy wrote:
> On 25 May 2010 14:24, Martin Sustrik <sustrik at 250bpm.com
> <mailto:sustrik at 250bpm.com>> wrote:
>     If so the API below gets even more straightforward:
>     int zmq_wait_fd (void* socket_);
>     int zmq_events (void* socket_, int revents);
> Might be cleaner to just add it onto a zmq_getsockopt().
> --
> Steve-o
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: zeromq-2.0.6.poll.patch
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100525/62e9da8e/attachment.ksh>

More information about the zeromq-dev mailing list