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

Hoàng Minh Hải haihm1983 at gmail.com
Fri Oct 12 10:58:11 CEST 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20121012/8566ec87/attachment.htm>


More information about the zeromq-dev mailing list