Re: [zeromq-dev] Communication between C++ zmq client and Python zmq Server

2018-02-02 Thread Thomas Rodgers
<>

Is this correct?


Yes


> 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
tools.

| 2.  Why use memcpy is bad or not suited?

http://en.cppreference.com/w/cpp/algorithm/copy
http://en.cppreference.com/w/cpp/algorithm/copy_n

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 -

#include 

...

std::copy_n(result.c_str(), result.size() + 1, request.data());

OR

std::copy(result.begin(), result.size(), request.data());

On Wed, Jan 31, 2018 at 12:33 PM, Bernardo Augusto García Loaiza <
botib...@gmail.com> wrote:

> Hi Thomas, thanks for your appreciations
>
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev


Re: [zeromq-dev] Building C++ binding zmq - zmqpp step

2018-02-02 Thread Thomas Rodgers
Please consult
http://www.boost.org/doc/libs/1_66_0/more/getting_started/index.html and
your operating system's package manager, where you may find a prepackaged
version of Boost for your platform

On Fri, Feb 2, 2018 at 4:32 PM, Bernardo Augusto García Loaiza <
botib...@gmail.com> wrote:

> Hi ZMQ people.
>
> I am building the c++ binding zmq and I have this inconvenient which I've
> entered as a issue  in the
> zmqpp repository  
>
> In the building process,  I have the problem
>
> ++  -o ./build/max-g++/zmqpp-tests  ./build/max-g++/obj/tests/test_inet.o  
> ./build/max-g++/obj/tests/test_z85.o  
> ./build/max-g++/obj/tests/test_context.o  
> ./build/max-g++/obj/tests/test_message.o  
> ./build/max-g++/obj/tests/test_auth.o  ./build/max-g++/obj/tests/test_actor.o 
>  ./build/max-g++/obj/tests/test_load.o  
> ./build/max-g++/obj/tests/test_proxy.o  ./build/max-g++/obj/tests/test_loop.o 
>  ./build/max-g++/obj/tests/test_socket_options.o  
> ./build/max-g++/obj/tests/test_socket.o  
> ./build/max-g++/obj/tests/test_reactor.o  
> ./build/max-**g++/obj/tests/test_sanity.o  
> ./build/max-g++/obj/tests/test_message_stream.o  
> ./build/max-g++/obj/tests/test_poller.o -L./build/max-g++ -lzmqpp 
> -lboost_unit_test_framework -lpthread -lzmq
> /usr/bin/ld: cannot find -lboost_unit_test_framework
> collect2: error: ld returned 1 exit status
> Makefile:195: recipe for target 'zmqpp-tests' failed**
> make: *** [zmqpp-tests] Error 1
>
> How to can I add or install or setup the -lboost_unit_test_framework library
> ? ... just in case that I am in right in my appreciation problem ...
>
>
> Bernardo Augusto García Loaiza
> Ingeniero de Sistemas
> Estudiante de Maestría en Ingeniería Informática - Universidad EAFIT
> http://about.me/bgarcial
>
>
> ___
> 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


[zeromq-dev] Building C++ binding zmq - zmqpp step

2018-02-02 Thread Bernardo Augusto García Loaiza
Hi ZMQ people.

I am building the c++ binding zmq and I have this inconvenient which I've
entered as a issue  in the
zmqpp repository  

In the building process,  I have the problem

++  -o ./build/max-g++/zmqpp-tests
./build/max-g++/obj/tests/test_inet.o
./build/max-g++/obj/tests/test_z85.o
./build/max-g++/obj/tests/test_context.o
./build/max-g++/obj/tests/test_message.o
./build/max-g++/obj/tests/test_auth.o
./build/max-g++/obj/tests/test_actor.o
./build/max-g++/obj/tests/test_load.o
./build/max-g++/obj/tests/test_proxy.o
./build/max-g++/obj/tests/test_loop.o
./build/max-g++/obj/tests/test_socket_options.o
./build/max-g++/obj/tests/test_socket.o
./build/max-g++/obj/tests/test_reactor.o
./build/max-**g++/obj/tests/test_sanity.o
./build/max-g++/obj/tests/test_message_stream.o
./build/max-g++/obj/tests/test_poller.o -L./build/max-g++ -lzmqpp
-lboost_unit_test_framework -lpthread -lzmq
/usr/bin/ld: cannot find -lboost_unit_test_framework
collect2: error: ld returned 1 exit status
Makefile:195: recipe for target 'zmqpp-tests' failed**
make: *** [zmqpp-tests] Error 1

How to can I add or install or setup the -lboost_unit_test_framework library
? ... just in case that I am in right in my appreciation problem ...


Bernardo Augusto García Loaiza
Ingeniero de Sistemas
Estudiante de Maestría en Ingeniería Informática - Universidad EAFIT
http://about.me/bgarcial
___
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev