To read a message you use zmq_msg_init(3) to create an empty mail, and then you pass that to zmq_recv(3).
To read a message you use zmq_msg_init(3) to create an empty message, and then you pass that to zmq_recv(3).