Receiving 0 size messages while using ZMQ and protobuf
问题 I am trying to set up a basic communication system between client and server using ZMQ. I am using protobuf for the message format. My problem is when I send the message from client the message size is 34 but the message size received on the server is 0. Following is my code; Client.cpp tutorial::Person person; person.set_id(1234); person.set_name("john"); person.set_email("john@mxyz.com"); person.set_phonenumber("12345678"); zmq::context_t context (1); // Prepare our context and socket zmq: