[zeromq-dev] chat example, forwarding a msg on known routing path

chubbson chubbson at gmail.com
Thu Dec 10 06:56:27 CET 2015


Hey zmq Folk,

Read the Guide and trying to implement a 'chat'.
A message should send from node A to node B.
A and B are in different subnet and doesnt know each other directly.
But A knows the routing path to send a msg to B (ViceVersa, B knows the
routing path for sending a message to A)

my first approach feels conceptually wrong.
wrapping the msg with routing nodes.
push / pull to next node.
each pull socket listen on the wire, unwrap the message, creates a new push
socket connection and forward the message to unwrapped node.

what is the common way to solve this kind of problem? could not be ok,
establishing a new connection per received msg, right?

https://gist.github.com/chubbson/8fc8d7d1c843e649398f

Cheers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20151210/0ab15d71/attachment.htm>


More information about the zeromq-dev mailing list