mirror of
https://github.com/zeromq/libzmq.git
synced 2025-04-16 06:56:40 +02:00
prevent duplicate connections from PUB sockets also (see https://gith… (#3117)
* Update zmq_connect documentation to mention issue of multiple connects to the same endpoint
This commit is contained in:
parent
c178193c50
commit
8ad0d5896e
@ -49,6 +49,14 @@ linkzmq:zmq_socket[3]. A ZMQ_ROUTER socket enters its normal 'ready' state
|
||||
for a specific peer only when handshaking is complete for that peer, which
|
||||
may take an arbitrary time.
|
||||
|
||||
NOTE: for some socket types, multiple connections to the same endpoint
|
||||
don't really make sense
|
||||
(see https://github.com/zeromq/libzmq/issues/788).
|
||||
For those socket types, any attempt to connect to an already connected endpoint
|
||||
is silently ignored (i.e., returns zero). This behavior applies to ZMQ_DEALER,
|
||||
ZMQ_SUB, ZMQ_PUB, and ZMQ_REQ socket types.
|
||||
|
||||
|
||||
RETURN VALUE
|
||||
------------
|
||||
The _zmq_connect()_ function returns zero if successful. Otherwise it returns
|
||||
|
Loading…
x
Reference in New Issue
Block a user