[zeromq-dev] Server Socket Initiate Communication

Luca Boccassi luca.boccassi at gmail.com
Sat Feb 10 17:38:11 CET 2018

On Sat, 2018-02-10 at 10:29 -0500, Matthew Harrigan wrote:
> I apologize in advance if this is a dumb question, but would still
> appreciate knowing why. So, why can't a server socket initiate
> communication? I am focused on this documentation
> http://api.zeromq.org/4-2:zmq-socket. AFAICT the only state change
> that
> happens in a server socket when a client socket connects to it is
> that the
> map that relates addresses to routing id's get updated. Suppose a
> machine
> with a server socket knows what address it want to communicate with,
> whether hard coded, from a beacon, service locator, whatever. Why
> can't it
> just tell the server socket to make a routing id to that address and
> then
> start communicating? Note I am working on a toy educational project
> where a
> gaggle of peers uses raft to get a leader and formally join or leave
> (different from crashing or network partitions). In such a peer to
> peer
> network the symmetry of each peer binding a server socket to itself
> and
> talking to other peers seems appealing. Thank you

For P2P networks check out zyre https://github.com/zeromq/zyre

Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180210/c9211901/attachment.sig>

More information about the zeromq-dev mailing list