[zeromq-dev] CZMQ migration to zsock_t*

Pieter Hintjens ph at imatix.com
Wed Apr 30 10:44:14 CEST 2014


Ah, I should not have changed the pointer types in the API. In C you
don't see a difference but of course it affects bindings to CZMQ.

I'll set them back to 'void *', and cast internally. zpoller, zloop
etc. take either an old style void * socket or a new style zsock_t *.

Sorry about breaking master. I'll fix it now.

-Pieter


On Wed, Apr 30, 2014 at 10:15 AM, Turkey Breast <turkeybreast at yahoo.com> wrote:
> Yes, probably a version mix up. Thanks for your help.
>
>
> Thanks, I'll keep an eye on your changes and slowly migrate to zsock as it comes up to speed.
>
> What initially breaks for me is that the poller stuff now takes zsock_t* instead of void*, so I had to migrate the czmq++ wrapper to zsock_t*.
>
> https://github.com/zeromq/czmq/blob/master/include/zpoller.h
>
>
>
>
> On Wednesday, April 30, 2014 2:10 AM, Pieter Hintjens <ph at imatix.com> wrote:
> Sorry about this. The changes in CZMQ should not be breaking anything.
> There was one issue in zloop's new code causing crashes, which I fixed
> yesterday.
>
> I've just re-run all the security examples, from CZMQ master, and they work.
>
> For sanity checking you can checkout the v2.2.0 tag on CZMQ, which is
> the last stable release. However the error in zsockopt looks more like
> something with libzmq. Perhaps a version mix up there?
>
> -Pieter
>
>
> On Wed, Apr 30, 2014 at 6:50 AM, Turkey Breast <turkeybreast at yahoo.com> wrote:
>> I tried updating ironhouse2 example:
>>
>> ./a.out
>> a.out: zsockopt.c:386: zsocket_set_curve_secretkey_bin: Assertion `rc == 0 || zmq_errno () == (156384712 + 53)' failed.
>> Aborted (core dumped)
>>
>>
>>
>>
>>
>>
>> On Tuesday, April 29, 2014 11:47 PM, Turkey Breast <turkeybreast at yahoo.com> wrote:
>> Hey,
>> Can you update the examples? A lot of things have broken in czmq++ for me, and would be good to have a point of reference to fix things.
>>
>> _______________________________________________
>> 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



More information about the zeromq-dev mailing list