ZeroMQ 官方地址 :http://api.zeromq.org/4-2:zmq_msg_close zmq_msg_close(3) ØMQ Manual - ØMQ/3.2.5 Name zmq_msg_close – 释放一个ZMQ消息 Synopsis intzmq_msg_close (zmq_msg_t *msg); Description zmq_msg_close()函数会通知ZMQ公共结构,所有和参数msg向关联的资源都不再被需要,并且会...
_zmq_msg_ family of functions. RETURN VALUE --- The _zmq_msg_close()_ function shall return zero if successful. Otherwise it shall return `-1` and set 'errno' to one of the values defined below. ERRORS --- *EFAULT*:: Invalid message. SEE ALSO --- linkzmq:zmq_msg_init[...
status = zmq_msg_close(&msg); check_error(status == 0, __LINE__); // Prints "Error (line 31): Bad address" /* === */ /* Either line will trigger SIGABRT from a zmq_assert */ /* === */ zmq_msg_size(&msg); // Why not return 0 or use error code model? zmq_msg_da...
zmq::msg_t::close (this=this@entry=0xaf9f8d10) at /usr/src/debug/zeromq/4.3.5-r0/zeromq-4.3.5/src/msg.cpp:262 #8 0xb6cd86b4 in zmq_msg_close (msg_=msg_@entry=0xaf9f8d10) at /usr/src/debug/zeromq/4.3.5-r0/zeromq-4.3.5/src/zmq.cpp:627 #9 0x0044a55c in zmq::...