如何将 ZeroMQ 用于原始 UDP? [英] How to use ZeroMQ for raw UDP?

查看:93
本文介绍了如何将 ZeroMQ 用于原始 UDP?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个客户端,我无法更改其代码 -- 但我想(重新)使用 ZeroMQ 套接字编写.

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

客户端使用原始 TCP 和原始 UDP 套接字.

The clients use both raw TCP and raw UDP sockets.

我知道我可以将 ZMQ_ROUTER_RAW 用于原始 TCP 套接字,但是 对于原始 UDP 数据流呢?

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

推荐答案

ZeroMQ 中对 UDP 的支持是全新的.新套接字类型(Radio/Dish)的文档刚刚推送到 GitHub 存储库几天前.不过,就目前而言,它似乎仍然没有原始 UDP 支持,但也许它会源于这项新功能.

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.

我建议对有关添加 UDP 支持的现有线程发表评论:https://github.com/zeromq/libzmq/issues/807 .

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

这篇关于如何将 ZeroMQ 用于原始 UDP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆