[zeromq-dev] Server Socket Initiate Communication

Matthew Harrigan harrigan.matthew at gmail.com
Sat Feb 10 16:29:50 CET 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20180210/0943c8b8/attachment.htm>


More information about the zeromq-dev mailing list