关于ZMQ使用zmq_msg_init()问题
写了一个zmq接收函数static int z_recv (void *socket) { zmq_msg_t message; zmq_msg_init (&message); zmq_recv (socket, &message, 20, 0); int size = zmq_msg_size(&message); char *string = malloc (size + 1); memcpy (string,