mirror of
https://github.com/zeromq/libzmq.git
synced 2025-05-02 23:42:32 +02:00
fix minor typo in zmq_ctx_get doc example
This commit is contained in:
parent
73ae948abb
commit
0b4ce80853
@ -54,7 +54,7 @@ EXAMPLE
|
|||||||
.Setting a limit on the number of sockets
|
.Setting a limit on the number of sockets
|
||||||
----
|
----
|
||||||
void *context = zmq_ctx_new ();
|
void *context = zmq_ctx_new ();
|
||||||
zmq_ctx_get (context, ZMQ_MAX_SOCKETS, 256);
|
zmq_ctx_set (context, ZMQ_MAX_SOCKETS, 256);
|
||||||
int max_sockets = zmq_ctx_get (context, ZMQ_MAX_SOCKETS);
|
int max_sockets = zmq_ctx_get (context, ZMQ_MAX_SOCKETS);
|
||||||
assert (max_sockets == 256);
|
assert (max_sockets == 256);
|
||||||
----
|
----
|
||||||
|
Loading…
x
Reference in New Issue
Block a user