[zeromq-dev] Working with invalid socket combinations

Raffi raffidice at nextideapartners.com
Thu Nov 28 02:27:28 CET 2013


I want to integrate message flow between incompatible socket types; is there
anything technically wrong with doing the following? I've got it working,
all seems fine, I just want to make sure doing so will not expose me to api
issues down the road. I understand REQ, REP, and ROUTER frames messages
based on identities, but I know how to work around that in this context.

Socket puller = ctx.createSocket(ZMQ.PULL);
Socket publisher = ctx.createSocket(ZMQ.PUB);
publisher.send( puller.recv());


Socket router = ctx.createSocket(ZMQ.ROUTER);




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20131127/8c9825c0/attachment.htm>

More information about the zeromq-dev mailing list