Question

I'm trying to port the ZeroMq Hello World Http server to Java from C. In this code snippet, the router socket is set to read raw data, but I can't figure out how to do this in Java...

zsocket_set_router_raw (router, 1);

Based on the guide, a socket type ZMQ_ROUTER_RAW exists, so I thought this would work in Java...

ZMQ.Socket router = context.socket(ZMQ.ROUTER_RAW);

...but doesn't, in fact, I can't find any constant for this type in the Java bindings. And I can't find a suitable static method either in Socket. I'm suspect I'm missing something under my nose here; it's frustrating because this is a small API.

Was it helpful?

Solution

Based on my findings, this is not supported in Java at this time: https://github.com/zeromq/jeromq/issues/60

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top