使用ZeroMQ我尝试在新的项目中使用 ZeroMQ。便携式类库的.Net和单
服务器和客户端必须通过ZeroMQ进行交互(交换消息)。 拟实现多种客户的Android,Windows中,可能是另一个。 我想就在PCL相互作用的基本逻辑。
的Visual Studio 2013 + Xamarin
我创建PCL项目,安装的NuGet包clrzmq。 创建的测试方法:
public string M1()
{
using (var c = new Context())
{
var subscriber = c.Socket(SocketType.SUB);
subscriber.Bind(Transport.TCP, "192.168.123.23:9292");
subscriber.Subscribe("", Encoding.UTF8); // subscribe to all messages
var message = subscriber.Recv(Encoding.UTF8, SendRecvOpt.NONE);
return message;
}
}
当我打电话在Android项目这个方法,我看到DllNotFoundException。 在 this question (但为Android)
代码编译所描述的问题,但在运行时 - 用于libzmq.dll错误DllNotFoundException。
你能告诉我如何配置链接libzmq正常吗?