[zeromq-dev] Polling API

Dhammika Pathirana dhammika at gmail.com
Thu Apr 15 09:44:29 CEST 2010


How do we use this in other frameworks?
ie. Glib::MainLoop(), QT::QEventDispatcher


On 4/14/10, Martin Sustrik <sustrik at 250bpm.com> wrote:
> Ok,
>
>  Here's a first sketch:
>
>  //  Account for both 0MQ sockets and file descriptors.
>  union zmq_poll_item_t
>  {
>      void *socket;
>      int fd;
>  };
>
>  //  Construction & destruction.
>  void *zmq_poller (void *context);
>  int zmq_poller_close (void *poller);
>
>  //  Pollset manipulation.
>  int zmq_poller_mod (void *poller, zmq_poll_item_t item, int events, void
>  *hint);
>
>  //  Getting events.
>  int zmq_poller_event (void *poller, zmq_poll_item_t *item, int *events,
>  void **hint);
>
>  Comments anyone?
>
>  Maybe zmq_pollset would be more appropriate than zmq_poller?
>
>
>  Martin
>  _______________________________________________
>  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