I think (but not sure) that something similar for Java is implemented
here:
https://github.com/sjudd/jzmq/commit/63e2f8a4142fd16b887279ee62b8119f6b196d44
/**
+ * 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++?
Thanks!
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
>
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev