简体   繁体   English

ZeroMQ基本请求-答复实现

[英]ZeroMQ basic Request-Reply implementation

I'm new to ZMQ trying to figure out how to integrate it in my project. 我是ZMQ试图弄清楚如何将其集成到我的项目中。 I need to implement the most basic request-reply model where the server is Java and the client is C++ . 我需要实现最基本的请求-答复模型,其中server is Javaclient is C++ I'm working on Windows using VS2013 and Eclipse (STS) . 我正在使用VS2013 and Eclipse (STS)Windows工作。 I find the material on the 0MQ overwhelming and confusing. 我发现0MQ上的资料令人不知所措。 What I'm looking for is a simple list of steps for: 我正在寻找的是以下步骤的简单列表:

  1. Downloading the 0MQ Java - what exactly should I download and from what URL for the most recent stable version. 下载0MQ Java-我应该下载什么,以及从哪个URL下载最新的稳定版本。

  2. What (location and files) do I need to get into my Eclipse project so that I can begin using 0MQ in my code. 我需要什么(位置和文件)才能进入Eclipse项目,以便可以开始在代码中使用0MQ。

  3. Downloading the 0MQ C++ - what exactly should I download and from what URL for the most recent stable version. 下载0MQ C ++-我应该下载什么,以及从哪个URL下载最新的稳定版本。

  4. What (location and files) do I need to get into my VS project so that I can begin using 0MQ in my code. 我需要什么(位置和文件)才能进入VS项目,以便可以开始在代码中使用0MQ。

Thanks. 谢谢。

  • Downloading the 0MQ Java 下载0MQ Java
  • What (location and files) do I need to get into my Eclipse project so that I can begin using 0MQ in my code. 我需要什么(位置和文件)才能进入Eclipse项目,以便可以开始在代码中使用0MQ。

If you're just testing stuff out, the easiest way to get Java working is with JeroMq ; 如果您只是在测试东西,那么使Java工作最简单的方法是使用JeroMq it's a full Java implementation of ZeroMq with identical API's. 它是具有相同API的ZeroMq的完整Java实现。 Configure with pom/maven, that's it. 使用pom / maven进行配置,仅此而已。 For production code, you'll want to build the java bindings for your target OS, but don't worry about that now. 对于生产代码,您将要为目标操作系统构建Java绑定,但是现在不必担心。

  • Downloading the 0MQ C++ 下载0MQ C ++
  • What (location and files) do I need to get into my VS project... 要进入VS项目,我需要什么(位置和文件)...

This is the hard part. 这是困难的部分。 If you can use C# instead of C++, check out NetMq , a native implementation of ZeroMq in C# for .net. 如果可以使用C#代替C ++,请签出NetMq ,这是C#for .net的ZeroMq的本机实现。 Otherwise, for C++ Visual Studio, you'll have to google around and piece together instructions, you can start here . 否则,对于C ++ Visual Studio,您必须四处搜寻并整理说明,可以从此处开始。

Hope it helps, 希望能帮助到你,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM