Hello Ravi,
If that's just a raw byte array, msg.data<uint8_t>() should to the trick.
For example:
for (size_t i = 0; i < msg.size(); ++i) {
printf("%02X ", msg.data<uint8_t>()[i]);
}
Regards,
Mykola
2017-11-23 14:52 GMT+02:00 Ravi Joshi via zeromq-dev <
[email protected]>:
> Hello,
>
> Hope you are having a good time. I am publishing byte array using ZeroMQ
> in C#. Please see the publisher here (https://pastebin.com/PJ7f2TJ5)
>
> I am trying to receive this byte array in C++. Please see the subscriber
> in C++ here (https://pastebin.com/JKf0cZjh)
>
> I want to know that how to receive the sent bytes in C++?
>
> -
>
> Thanks
> Ravi
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev