ZeroMQ REQ-REP not working

*爱你&永不变心* 提交于 2019-12-12 06:39:25

问题


I'm trying to use ZeroMQ for data exchange between my programs. My system consists of two parts: client (REQ) written on C# and running on Windows and server (REP) written in C++ and running on linux ubuntu.

The client sends a request, server catches it, processes and sends a reply. The reply is never delivered.

In the minimal test case client and server simply sends empty messages, so the problem isn't in the message construction or processing code.

If I change the roles, and run server on Windows and Client on Linux, everything works OK. If I start PUB server on Linux and the SUB client on Windows, none of the messages is delivered.

I use Linux Ubuntu 12.04 LTS amd64, ZeroMQ 4.0.3 and g++ 4.6.3 on server side and Windows 8.1 x64, Visual Studio 2013 RC and clrzmq NuGet package 2.2.5 on the client side.

Does anybody have any thoughts?


回答1:


OK, I get it. I had to use older version of ZMQ on the server



来源:https://stackoverflow.com/questions/20599831/zeromq-req-rep-not-working

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