Hi Andy,

1) Wild guess here for the first one. Instead of
std::vector<std::string> msg_parts;
try
std::vector<std::wstring> msg_parts;

This will work if the encoding of the message being received is UNICODE as
opposed to ASCII encoding.

2) The zmq_getsockopt <http://api.zeromq.org/4-0:zmq-getsockopt>API
indicates ZMQ_RCVMORE is an integer property,
so, instead of
    char optbuf[256];
    size_t optlen;
try
    int optbuf = 0
    size_t optlen = sizeof(optbuf);
and in the loop:
replace
    } while (optlen==0);
with this
    } while (optbuf == 1);

Osiris

On Mon, Jan 16, 2017 at 8:00 AM Andy <borucki.andr...@gmail.com> wrote:

> Progress. I am using this C library instead C++ wrapper and is:
> https://gist.github.com/borneq/cb5f3fc89f851a93be271d3a886153e4
>
> But I have notes:
> 1. there are odd chars like:
> hashtx
> F��d� .������:�i6��"]s�|�5#� �
>
> rawtx .������:�i6��"]s�|�5#� �
>
> hashtx
> 0% ���m�M��������
> lUˠUy�u F o��v��Ӝ������x�� �����
> rawtxUy�u F o��v��Ӝ������x�� �����
>
> whereas hashtx,rawtx are correct but data no.
> 2.zmq_getsockopt(socket, ZMQ_RCVMORE, optbuf, &optlen);
> optlen always = 0
> 3.For Windows zmq_recv is blocked, moreover, Python program is also
> blocked.
>
>
>
>
> 2017-01-13 16:48 GMT+01:00 Andy <borucki.andr...@gmail.com>:
>
> I write gist:
> https://gist.github.com/borneq/b72ecf68ea489d0a457041af2fd12a60
> but still do nothing after
>
> bitcoind -zmqpubhashtx=tcp://127.0.0.1:28332 -zmqpubrawtx=tcp://
> 127.0.0.1:28332 &
>
> whereas python zmq_sub.py does
>
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev@lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to