如何在桌面应用程序中使用 zeroMQ [英] How to use zeroMQ in Desktop application

查看:33
本文介绍了如何在桌面应用程序中使用 zeroMQ的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在桌面应用程序中工作,其中应用程序部署在 windows 和 mac 平台上.作为应用程序的一部分,它应该与本机层通信.目前本机层和Java 层之间的通信是使用套接字完成的.最近团队中有人建议使用 zeroMQ.你们中的任何一个都可以澄清我的疑问.

I am working in a desktop application, where application is deployed in both windows and mac platforms. As part of the application, it should communicate with native layer. Currently the communication between native layer and Java layer is done using sockets. Recently some one in the team suggested to use zeroMQ. Can any one of you guys please clarify my doubts.

  1. zeroMQ 比套接字好在哪里
  2. 是否可以将 zeroMQ 库安装为桌面客户端安装的一部分
  3. 我浏览了链接https://github.com/zeromq/clrzmq4",它提供了特定于 amd64 和 i386 处理器系列的库.我是否需要为不同的处理器与源代码分开构建它?
  4. 我是否仍然需要 .dll 文件才能在 Java 中使用 zeroMQ?
  5. 我是否需要 Visual Studio 在 Windows 中构建 zeroMQ 库(因为我的本机层是用 C# 编写的,所以我的 C# 应用程序与 java 编写的 zeroMQ 套接字套接字通信)?
  1. How zeroMQ better than sockets
  2. Is it possible to install zeroMQ library as part the Desktop client installation
  3. I gone through the link 'https://github.com/zeromq/clrzmq4', it given libraries specific to amd64 and i386 processor family. Do I need to build it separately from the source code for different processors?
  4. Do I still require .dll files to use zeroMQ in Java?
  5. Do I require Visual studio to build zeroMQ libraries in windows (Since my native layer written in C#, my C# application communicate with zeroMQ socket socket written java)?

推荐答案

  1. zeroMQ 比套接字好在哪里

  1. How zeroMQ better than sockets

http://zeromq.org/topics:omq-is-just-sockets

是否可以将 zeroMQ 库安装为桌面客户端安装的一部分?

Is it possible to install zeroMQ library as part the Desktop client installation?

是的,您需要根据处理器构建库并将它们嵌入到您的应用程序中.

Yes, you need to build the libraries depends on the processor and embed them in your application.

我是否需要为不同的处理器与源代码分开构建它?

Do I need to build it separately from the source code for different processors?

是的,您需要从源代码构建库.zeroMQ 以处理器为中心.

Yes, you need to build the libraries from source. zeroMQ is processor centric.

我是否仍然需要 .dll 文件才能在 Java 中使用 zeroMQ?是的,以下链接可能对您有所帮助

Do I still require .dll files to use zeroMQ in Java? Yes, Following link may help you

线程main"中的异常java.lang.UnsatisfiedLinkError: ... \jzmq.dll: 找不到依赖库

我是否需要 Visual Studio 在 Windows 中构建 zeroMQ 库?

Do I require Visual studio to build zeroMQ libraries in windows?

这个链接可能帮助您获得基本示例.

This link may help you to get basic examples.

这篇关于如何在桌面应用程序中使用 zeroMQ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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