How to use ZeroMQ for raw UDP?

被刻印的时光 ゝ 提交于 2019-12-08 15:59:19

问题


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?


回答1:


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 .



来源:https://stackoverflow.com/questions/23825168/how-to-use-zeromq-for-raw-udp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!