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" <[email protected]> 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 <[email protected]> wrote: > >> On Fri, Oct 12, 2012 at 3:59 PM, Hoàng Minh Hải <[email protected]> >> 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 >> [email protected] >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev >> > > > > -- > Thanks & best regards, > Hải > ------------------------- > Mobile: 0979830886 > Ym: [email protected] > Skype: victor.hoang.2911 > > _______________________________________________ > zeromq-dev mailing list > [email protected] > http://lists.zeromq.org/mailman/listinfo/zeromq-dev > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
