mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-03 04:38:42 +01:00
Merge pull request #2832 from ebyrob/fix-doc-zmq_msg_init-zmq_recv
Change zmq_recv to zmg_msg_recv since zmq_msg_t used there.
This commit is contained in:
commit
cffc1c4d2d
@ -16,7 +16,7 @@ DESCRIPTION
|
|||||||
-----------
|
-----------
|
||||||
The _zmq_msg_init()_ function shall initialise the message object referenced by
|
The _zmq_msg_init()_ function shall initialise the message object referenced by
|
||||||
'msg' to represent an empty message. This function is most useful when called
|
'msg' to represent an empty message. This function is most useful when called
|
||||||
before receiving a message with _zmq_recv()_.
|
before receiving a message with _zmq_msg_recv()_.
|
||||||
|
|
||||||
CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
|
CAUTION: Never access 'zmq_msg_t' members directly, instead always use the
|
||||||
_zmq_msg_ family of functions.
|
_zmq_msg_ family of functions.
|
||||||
@ -43,7 +43,7 @@ EXAMPLE
|
|||||||
zmq_msg_t msg;
|
zmq_msg_t msg;
|
||||||
rc = zmq_msg_init (&msg);
|
rc = zmq_msg_init (&msg);
|
||||||
assert (rc == 0);
|
assert (rc == 0);
|
||||||
int nbytes = zmq_recv (socket, &msg, 0);
|
int nbytes = zmq_msg_recv (socket, &msg, 0);
|
||||||
assert (nbytes != -1);
|
assert (nbytes != -1);
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user