Using ZeroMQ in Xamarin

青春壹個敷衍的年華 提交于 2019-12-31 02:09:08

问题


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

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

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

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

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


回答1:


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.

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

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



来源:https://stackoverflow.com/questions/37143070/using-zeromq-in-xamarin

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