<<I think this got dropped because of the size of the included replies>>
Is this correct?
> 1. What advantages do I have when using something like protocol buffer to
> serialization data instead of
> send the data of a basic way such as I perform here turn the data to
> string and sending it?
If you want to send complex data structures, portably between different
programming language environments and processor architectures.
This is not a goal of ZeroMQ and is explicitly left to other libraries and
| 2. Why use memcpy is bad or not suited?
are better alternatives in C++ and as, or more efficient than ::memcpy
(they in fact delegate, as inline code to ::memcpy if that is the fastest
way to perform the copy).
your example would read -
std::copy_n(result.c_str(), result.size() + 1, request.data());
std::copy(result.begin(), result.size(), request.data());
On Wed, Jan 31, 2018 at 12:33 PM, Bernardo Augusto García Loaiza <
> Hi Thomas, thanks for your appreciations
zeromq-dev mailing list