I try to use ZeroMQ in new project.
Server and client must interact (exchange messages) through ZeroMQ. It is planned to implement several kinds of customers Android, Windows, may be another. I would like to make the basic logic of interaction in the PCL.
Visual Studio 2013 + Xamarin
I created PCL project, with NuGet installed clrzmq package. Created test method:
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;
}
}
When I call this method in Android project, I see DllNotFoundException. The problem described in this question (but for Android)
The code compiles, but in runtime - error DllNotFoundException for libzmq.dll.
Could you tell me how to configure linking libzmq properly?