mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-28 16:15:23 +08:00
distinguish between options and defaults
This commit is contained in:
parent
d4bb6d693f
commit
e7804c5027
@ -175,8 +175,10 @@ ZMQ_EXPORT const char *zmq_strerror (int errnum);
|
|||||||
enum zmq_ctx_opts_t {
|
enum zmq_ctx_opts_t {
|
||||||
/* Context options */
|
/* Context options */
|
||||||
ZMQ_IO_THREADS = 1,
|
ZMQ_IO_THREADS = 1,
|
||||||
ZMQ_MAX_SOCKETS = 2,
|
ZMQ_MAX_SOCKETS = 2
|
||||||
|
};
|
||||||
|
|
||||||
|
enum zmq_ctx_defaults_t {
|
||||||
/* Default for new contexts */
|
/* Default for new contexts */
|
||||||
ZMQ_IO_THREADS_DFLT = 1,
|
ZMQ_IO_THREADS_DFLT = 1,
|
||||||
ZMQ_MAX_SOCKETS_DFLT = 1024
|
ZMQ_MAX_SOCKETS_DFLT = 1024
|
||||||
@ -372,7 +374,10 @@ ZMQ_EXPORT int zmq_recviov (void *s, struct iovec *iov, size_t *count, int flags
|
|||||||
enum zmq_poll_types_t {
|
enum zmq_poll_types_t {
|
||||||
ZMQ_POLLIN = 1,
|
ZMQ_POLLIN = 1,
|
||||||
ZMQ_POLLOUT = 2,
|
ZMQ_POLLOUT = 2,
|
||||||
ZMQ_POLLERR = 4,
|
ZMQ_POLLERR = 4
|
||||||
|
};
|
||||||
|
|
||||||
|
enum zmq_poll_defaults_t {
|
||||||
ZMQ_POLLITEMS_DFLT = 16
|
ZMQ_POLLITEMS_DFLT = 16
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user