Zeromq:如何从 python 客户端发送超过 30 个字符的消息到 c++服务器
我制作了一个 C++ 服务器和 python 客户端,它们一起发送消息。
从服务器向 python 客户端发送很长的消息似乎没有问题,但 python 客户端无法发送或 c++ 服务器没有接收超过 30 个字符的消息。
我知道小消息有 30 个字符的限制,但如何发送长消息?
I made a C++ server and python client which sends message together.
It seems like there is no problem on sending very long messages to python client from server but python client cannot send or c++ server does not receive message longer than 30 characters.
I know there is 30 character limit on small messages but HOW to send long message?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我假设 C++ 有等价的东西,但至少在 python 绑定中有一个 send_multipart 以及对应的 recv_multipart 应该可能默认使用,除非您知道您永远不会接收或广播大于帧大小的消息(可能永远不会发生)。
Well, I would assume the C++ has something equivalent, but at least in the python bindings there's a send_multipart and the corresponding recv_multipart which should probably be used by default unless you know for a fact that you will never receive or broadcast messages bigger than whatever the framesize is(probably never happens).