mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-15 02:07:59 +08:00
update ZMQ_STREAM docs about connection notification
Also the portion about how to close a connection does not only apply to servers.
This commit is contained in:
parent
763bf34e88
commit
d4c5dc9b1d
@ -351,10 +351,12 @@ routed to, and unroutable messages shall cause an EHOSTUNREACH or EAGAIN error.
|
|||||||
To open a connection to a server, use the zmq_connect call, and then fetch the
|
To open a connection to a server, use the zmq_connect call, and then fetch the
|
||||||
socket identity using the ZMQ_IDENTITY zmq_getsockopt call.
|
socket identity using the ZMQ_IDENTITY zmq_getsockopt call.
|
||||||
|
|
||||||
To close a specific client connection, as a server, send the identity frame
|
To close a specific connection, send the identity frame followed by a
|
||||||
followed by a zero-length message (see EXAMPLE section). Similarly, when the
|
zero-length message (see EXAMPLE section).
|
||||||
peer disconnects (or the connection is lost), a zero-length message will be
|
|
||||||
received by the application.
|
When a connection is made, a zero-length message will be received by the
|
||||||
|
application. Similarly, when the peer disconnects (or the connection is lost),
|
||||||
|
a zero-length message will be received by the application.
|
||||||
|
|
||||||
The ZMQ_SNDMORE flag is ignored on data frames. You must send one identity frame
|
The ZMQ_SNDMORE flag is ignored on data frames. You must send one identity frame
|
||||||
followed by one data frame.
|
followed by one data frame.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user