diff options
author | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-20 10:14:21 +0200 |
---|---|---|
committer | Martin Sustrik <sustrik@fastmq.commkdir> | 2009-09-20 10:14:21 +0200 |
commit | 50a8b9ea0c4a819073b46449dee8fc839b837ae5 (patch) | |
tree | a1effc887ebb0e824959b114dd0ed67e788d0507 /bindings/c | |
parent | edecf75b611cf0e6b1c2658846cff013434edad4 (diff) |
'flags' parameter added to zmq_init
Diffstat (limited to 'bindings/c')
-rw-r--r-- | bindings/c/zmq.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bindings/c/zmq.h b/bindings/c/zmq.h index 732ecb9..797d060 100644 --- a/bindings/c/zmq.h +++ b/bindings/c/zmq.h @@ -91,6 +91,10 @@ extern "C" { // the peer that the previous recv delivered message from. #define ZMQ_REP 4 +// Option specifying that the sockets should be pollable. This may be a little +// less efficient that raw non-pollable sockets. +#define ZMQ_POLL 1 + // Prototype for the message body deallocation functions. // It is deliberately defined in the way to comply with standard C free. typedef void (zmq_free_fn) (void *data); @@ -150,7 +154,7 @@ ZMQ_EXPORT int zmq_msg_type (struct zmq_msg_t *msg); // // Errors: EINVAL - one of the arguments is less than zero or there are no // threads declared at all. -ZMQ_EXPORT void *zmq_init (int app_threads, int io_threads); +ZMQ_EXPORT void *zmq_init (int app_threads, int io_threads, int flags); // Deinitialise 0MQ context including all the open sockets. Closing // sockets after zmq_term has been called will result in undefined behaviour. |