mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-28 19:52:00 +01:00
Merge pull request #1534 from somdoron/master
problem: new poller field in zmq_pollitem_t is changing the api
This commit is contained in:
@@ -383,8 +383,8 @@ ZMQ_EXPORT int zmq_send (void *s, const void *buf, size_t len, int flags);
|
||||
ZMQ_EXPORT int zmq_send_const (void *s, const void *buf, size_t len, int flags);
|
||||
ZMQ_EXPORT int zmq_recv (void *s, void *buf, size_t len, int flags);
|
||||
ZMQ_EXPORT int zmq_socket_monitor (void *s, const char *addr, int events);
|
||||
ZMQ_EXPORT int zmq_add_poller (void *s, void *p);
|
||||
ZMQ_EXPORT int zmq_remove_poller (void *s, void *p);
|
||||
ZMQ_EXPORT int zmq_add_pollfd (void *s, void *p);
|
||||
ZMQ_EXPORT int zmq_remove_pollfd (void *s, void *p);
|
||||
|
||||
/******************************************************************************/
|
||||
/* I/O multiplexing. */
|
||||
@@ -405,15 +405,20 @@ typedef struct zmq_pollitem_t
|
||||
#endif
|
||||
short events;
|
||||
short revents;
|
||||
void *poller;
|
||||
} zmq_pollitem_t;
|
||||
|
||||
#define ZMQ_POLLITEMS_DFLT 16
|
||||
|
||||
ZMQ_EXPORT int zmq_poll (zmq_pollitem_t *items, int nitems, long timeout);
|
||||
ZMQ_EXPORT void *zmq_poller_new ();
|
||||
ZMQ_EXPORT int zmq_poller_close (void *p);
|
||||
ZMQ_EXPORT void *zmq_pollfd_new ();
|
||||
ZMQ_EXPORT int zmq_pollfd_close (void *p);
|
||||
|
||||
#if defined _WIN32
|
||||
ZMQ_EXPORT SOCKET zmq_pollfd_fd (void *p);
|
||||
#else
|
||||
ZMQ_EXPORT int zmq_pollfd_fd (void *p);
|
||||
#endif
|
||||
|
||||
/******************************************************************************/
|
||||
/* Message proxying */
|
||||
/******************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user