FreeMemory
FreeMemory

Reputation: 8624

How to use ZeroMQ for raw UDP?

I have a client, whose code I can't change -- but I'd like to (re)write using ZeroMQ sockets.

The clients use both raw TCP and raw UDP sockets.

I know I can use ZMQ_ROUTER_RAW for raw TCP sockets, but what about for raw UDP datastreams?

Upvotes: 11

Views: 17963

Answers (2)

PfunnyGuy
PfunnyGuy

Reputation: 938

UDP Support for ZMQ is now documented here: http://api.zeromq.org/master:zmq-udp

Pyzmq version 18 has it as well, stating: "Protocols supported include tcp, udp, pgm, epgm, inproc and ipc." That said, my experimentation with Python hasn't found a solution that works yet. I get "protocol is not compatible with socket type" errors.

Upvotes: 6

Hannah Schultz
Hannah Schultz

Reputation: 573

Support for UDP in ZeroMQ is brand new. The documentation for the new socket types (Radio/Dish) was just pushed to the GitHub repository a few days ago. As of right now, though, it still looks like there's no raw UDP support, but perhaps it will stem out of this new functionality.

I'd recommend commenting on the existing thread about adding UDP support: https://github.com/zeromq/libzmq/issues/807 .

Upvotes: 11

Related Questions