[email protected] said: > On 04/03/2011 11:51 AM, Pieter Hintjens wrote: > > > zmq_msg_t msg; > > zmq_msg_init (&msg, 0); // instead of zmq_msg_init (&msg); > > zmq_recvmsg (s,&msg, 0); > > > > It does make receiving a message slightly weird, but it gives a single > > 'normal' init method, which is worth a lot IMO. > > I am not against. The less functions the better. Let's see what others say.
What happened to the original idea with 3.0 to have zmq_recv() and zmq_send() use char * buffers thus avoiding any zmq_msg_t complexity for the simple cases and users that don't need that, and keep the current zero-copy API but use zmq_recvmsg() and zmq_sendmsg() instead? -mato _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
