[zeromq-dev] Using ZeroMQ on the Windows Phone 7.1/5 Mango Platform

Nick Talbot solutions at magichat.biz
Sun Jan 1 23:48:22 CET 2012


Hi all, I successfully integrated ZeroMQ into my new iPhone app (see it in action at http://www.ibuzzedfirst.com/ ), and now I'm moving on to the other mobile platforms, i.e. Windows Phone 7 and Android.

With Windows Phone 7 however, I've hit a dead end pretty quickly, which I thought I would share, as I don't see a solution right now.

Windows Phone 7 development is via C# and a Silverlight 4-like platform. I have plenty of experience in C#, WPF, and Silverlight, so I though this would be a cinch.

But get this: Windows Phone 7 DOES NOT SUPPORT native C/C++ Libraries, or P/Invoke support UNLESS you are a major OEM vendor, but NOT as an independent developer.

Even before I realised this, I hit a few problems. I tried building the normal ZeroMq .net clrzmq2 wrapper. I built against the earlier Windows Phone 7.0 platform first, only to discover that System.Net.Socket support isn't present in 7.0!! Actually, it turns out socket support has been added and is present in 7.1/5 'Mango', so more of clrzmq built, but still not all of it as several methods in the Marshall class implementation and others in the Mango 7.5 are still not supplied by Microsoft.

I was going to investigate this further, but then discovered the inability to include custom C/C++ libraries, which tops everything.

The only possible solution would be to port the entire C ZeroMQ source base to C#, rather than just having a C# wrapper that calls into C library implementation as present.

Has anyone done this?

Thanks,
Nick Talbot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120101/37c6a1b4/attachment.htm>


More information about the zeromq-dev mailing list