[zeromq-dev] ROUTER-to-REP (C++ ) error on Window

Pieter Hintjens pieterh at gmail.com
Fri Oct 12 11:50:48 CEST 2012


This is a change in the C API in version 3.x ... in czmq we made this smart
enough to detect the difference. It could be wise to also improve the c++
API in zmq.hpp.

But in any case, it's nice to fix the c++ examples to work with 3.2.

Pieter
On Oct 12, 2012 5:58 PM, "Hoàng Minh Hải" <haihm1983 at gmail.com> wrote:

> I would run this example successfully.
> I see in the function int zmq::socket_base_t::getsockopt (int option_,
> void *optval_, size_t *optvallen_) with the code
> *    if (option_ == ZMQ_RCVMORE) {*
> *        if (*optvallen_ < sizeof (int)) {*
> *            errno = EINVAL;*
> *            return -1;*
> *        }*
> *        *((int*) optval_) = rcvmore ? 1 : 0;*
> *        *optvallen_ = sizeof (int);*
> *        return 0;*
> *    }*
> And I think type of 'more' should be int. Should we use ROUTER-REP for a
> pull request?
>
> On Fri, Oct 12, 2012 at 3:20 PM, Pieter Hintjens <ph at imatix.com> wrote:
>
>> On Fri, Oct 12, 2012 at 3:59 PM, Hoàng Minh Hải <haihm1983 at gmail.com>
>> wrote:
>>
>> > I found the problem with the code (zhelpers.hpp)
>>
>> Nice... would you make a pull request with this change?
>>
>> -Pieter
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>
>
>
> --
> Thanks & best regards,
> Hải
> -------------------------
> Mobile: 0979830886
> Ym: minhhai2911 at yahoo.com
> Skype: victor.hoang.2911
>
> _______________________________________________
> 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/20121012/86db2ee9/attachment.htm>


More information about the zeromq-dev mailing list