[zeromq-dev] pyczmq and ctx.set_linger()
Michel Pelletier
pelletier.michel at gmail.com
Fri Jan 17 20:17:01 CET 2014
On Fri, Jan 17, 2014 at 8:49 AM, MinRK <benjaminrk at gmail.com> wrote:
>
>
>
> I think making sure the low-level pointers are available in such a way
> that you can comfortably pass the zmq sockets and contexts in between the
> two libraries would be useful, and should be fairly easy.
>
pyczmq exposes both zctx_shadow_zmq_ctx to make a czmq context out of a zmq
one, and zctx_underlying for the inverse. czmq socket pointers are not
wrappers at all, they are the raw socket pointers. So both kinds low level
pointers are available and can be passed both directions in pyczmq.
If pyzmq had a similar method to construct a Context and Socket from the
cdata pointers and also a way to access those pointers, then both libraries
could interoperate pretty much perfectly. Maybe that's already the case, I
haven't dug deep into the pyzmq cffi backend implementation.
-Michel
>
>
>>
>> -Michel
>>
>>
>>
>>>
>>> Greg
>>> _______________________________________________
>>> zeromq-dev mailing list
>>> zeromq-dev at lists.zeromq.org
>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>>
>>
>>
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20140117/6b7a8f3d/attachment.htm>
More information about the zeromq-dev
mailing list