On 8 June 2012 05:23, Ian Barber <[email protected]> wrote: > Maybe we should update that to: > > With the exception of *ZMQ_PAIR* sockets, a single socket may be > connected to multiple endpoints using *zmq_connect()*, while > simultaneously accepting incoming connections from multiple endpoints bound > to a single socket using *zmq_bind()*. Refer to > zmq_socket(3)<http://api.zeromq.org/3-1:zmq_socket>for a description of the > exact semantics involved when connecting or > binding a socket to multiple endpoints. >
There is a hidden implication of socket type which is not helping, something like might be more insightful: ZeroMQ sockets* support 1-to-*many* and *many*-to-1 semantics, zmq_bind() defines the singular endpoint, whilst zmq_connect() is used by the *many* endpoints*.* Each and every ZeroMQ socket type supports being bound as a singular endpoint or connecting as a *many *endpoint. This allows combinations such as 1 ZMQ_REP to 100 ZMQ_REP and 100 ZMQ_REQ to 1 ZMQ_REP socket connections. -- Steve-o
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
