在Xamarin使用ZeroMQ [英] Using ZeroMQ in Xamarin

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

问题描述

我从一台服务器和客户端组成的应用程序。

I have an application composed from a server and a client.

该服务器是C / C ++应用程序和客户端是针对一个跨平台的Xamarin应用Windows中,Android和iOS。

The Server is C/C++ application, and the client is a cross-platform Xamarin application that target Windows, Android and iOS .

使用ZeroMQ邮件的服务器部分和客户端部分进行通信。

The Server part and the Client part communicate using ZeroMQ messages.

我试过目前C#实现像NetMQ和clrzmq,但他们不能在Xamarin使用。

I tried the current c# implementation like NetMQ and clrzmq, but they cannot be used in Xamarin.

你知道吗?在Xamarin使用ZeroMQ最简单的方法是什么?

Did you know the simplest way to use ZeroMQ in Xamarin?

推荐答案

我担心有没有简单的解决方案大气压。直到NetMQ笔者将下降到使图书馆便携式一路。如果你需要一个快速的解决方法,你可以尝试做一个HTTP隧道为您的数据,即通过HTTP从Xamarin客户端的数据传输到IIS服务器,并有从HTTP数据包解压NetMQ包并重新发送那些您的C / C ++ ZeroMQ服务器。

I fear there is no straightforward solution atm. Not until the NetMQ author will take all the way down to making the library portable. If you need a quick workaround you could try to make an HTTP tunnel for your data i.e. transfer your data from Xamarin client to IIS server via HTTP and there unpack NetMQ packages from HTTP packets and resend those to your C/C++ ZeroMQ server.

作为一种替代方法,你可以试试这个: Socket.IO客户端.NET 或本:套接字插件Xamarin

As an alternative you could try this: Socket.IO Client .NET or this: Sockets Plugin for Xamarin.

我没有他们的表现ZeroMQ和NetMQ特别虽然任何比较。

I do not have any comparison of their performance to ZeroMQ and NetMQ in particular though.

这篇关于在Xamarin使用ZeroMQ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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