[zeromq-dev] inter-thread push and pull
Steven McCoy
steven.mccoy at miru.hk
Fri Jun 8 15:51:37 CEST 2012
On 8 June 2012 05:23, Ian Barber <ian.barber at gmail.com> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120608/80f27e87/attachment.htm>
More information about the zeromq-dev
mailing list