[zeromq-dev] how to use "inproc" for connecting C# and C++ (how to share context?)

Oleg Vazhnev ovazhnev at gmail.com
Mon May 13 20:05:23 CEST 2013

I think (but not sure) that something similar for Java is implemented 

+     * Create a new Context from an existing zmq context, e.g. for 
sharing contexts between independent libraries
+     *
+     * @param contextAddress
+     *            A pointer to the existing context
+     * @return the Context
+     */
+    public static Context context (long contextAddress) {
+        return new Context (contextAddress);
+    }

Probably someone can suggest how to do the same in C#, how can I share 
context between C# and C++?


13.05.2013 16:00, Oleg Vazhnev пишет:
> Hi
> I want to connect c++ and c# side of my application using "inproc" binding.
> To do that I need to share context somehow, because both c# and c++
> parts should use the same context.
> How can I do that? I'm using official c++ and c# bindings.
> I.e. on c# side i need ZeroMQ.ZmqContext
> And on c++ side i need zmq::context_t
> And both instances should point to the same context so I can use "inproc".
> Thanks,
>    Oleg

More information about the zeromq-dev mailing list