mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08:00
getsockopt documentation fixed
This commit is contained in:
parent
ac90b7e0ba
commit
9858447fad
@ -20,7 +20,7 @@ specified by the 'option_name' argument for the 0MQ socket pointed to by the
|
||||
'socket' argument, and store it in the buffer pointed to by the 'option_value'
|
||||
argument. The 'option_len' argument is the size in bytes of the buffer pointed
|
||||
to by 'option_value'; upon successful completion _zmq_getsockopt()_ shall
|
||||
modify the 'option_value' argument to indicate the actual size of the option
|
||||
modify the 'option_len' argument to indicate the actual size of the option
|
||||
value stored in the buffer.
|
||||
|
||||
The following options can be retrieved with the _zmq_getsockopt()_ function:
|
||||
@ -222,7 +222,8 @@ EXAMPLE
|
||||
----
|
||||
/* Retrieve high water mark into hwm */
|
||||
int64_t hwm;
|
||||
rc = zmq_getsockopt (socket, ZMQ_HWM, &hwm, sizeof hwm);
|
||||
size_t hwm_size = sizeof (hwm);
|
||||
rc = zmq_getsockopt (socket, ZMQ_HWM, &hwm, &hwm_size);
|
||||
assert (rc == 0);
|
||||
----
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user