c# - Using ZeroMQ in Portable Class Library .Net & Mono -


i try use zeromq in new project.

server , client must interact (exchange messages) through zeromq. planned implement several kinds of customers android, windows, may another. make basic logic of interaction in pcl.

visual studio 2013 + xamarin

i created pcl project, 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 messages            var message = subscriber.recv(encoding.utf8, sendrecvopt.none);            return message;       } } 

when call method in android project, see dllnotfoundexception. problem described in this question (but android)

the code compiles, in runtime - error dllnotfoundexception libzmq.dll.

could tell me how configure linking libzmq properly?

after reading post xamarin, , experience limitations of pcl in xamarin. isn't option. when import tha zeromq adds binaries x86 , amd64 project. these binaries allow work mono framework on x86/amd64 platforms, not arm(android/ios/windows phone).

also in xamarin documentation of what portable class library? has list of disadvantages

  • because same portable class library shared between multiple applications, platform-specific libraries cannot referenced (eg. community.csharpsqlite.wp7).
  • the portable class library subset may not include classes otherwise available in both monotouch , mono android (such dllimport or system.io.file).

the dllnotfoundexception coming lack of dllimport support


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -