Transfer: https://www.cnblogs.com/fengbohello/p/4230135.html
Official website of ZMQ interface documentation: http://api.zeromq.org/
Baidu network disk download address of ZMQ interface documentation (English): http://pan.baidu.com/s/1jGDqXfS
● zmq - 0MQ lightweight messaging kernel
● zmq_close - closes the ZMQ socket
● zmq_connect - creates an outgoing connection from a socket
● zmq_ctx_destroy - destroys a ZMQ environment context
● zmq_ctx_get - get the properties of the environment context
● zmq_ctx_new – creates a new ZMQ environment context
● zmq_ctx_set - set environment context properties
● zmq_ctx_shutdown - stop a ZMQ context
● zmq_socket_monitor - register a monitor callback function
● zmq_ctx_term - terminates a ZMQ environment context
● zmq_curve – secure authentication and privacy
● zmq_curve_keypair - generate a new CURVE keypair
● zmq_disconnect - disconnect a socket
● zmq_errno – returns the value of errno to the thread calling this function
● zmq_init - initializes the ZMQ environment context (deprecated)
● zmq_z85_decode – parses a binary code from a text generated by the Z85 algorithm
● zmq_z85_encode – encrypts a binary key using the Z85 algorithm and outputs printable text
● zmq_version – returns the version of the ZMQ link library
● zmq_unbind - stop connecting incoming requests
● zmq_plain - plaintext authentication
● zmq_null - no security and encryption
● zmq_msg_more - indicates if there are more message parts to receive
● zmq_msg_init - initializes an empty ZMQ message structure
● zmq_msg_init_data - data to initialize a ZMQ message object from a specified storage space
● zmq_msg_init_size - initializes the ZMQ message object with a specified space size
● zmq_msg_move - move content from one message to another
● zmq_msg_copy - copy the contents of one message to another
● zmq_msg_data - returns a pointer to the content of the message
● zmq_msg_get - get the nature of the message
● zmq_msg_set - set the nature of the message
● zmq_msg_size - 以字节为单位返回消息内容的大小
● zmq_msg_recv - 从一个socket中接受一个消息帧
● zmq_msg_send – 从一个socket发送一个消息帧
● zmq_term - 终结ZMQ环境上下文(context)(已弃用)
● zmq_recv – 从一个socket上接收一个消息帧
● zmq_send – 在一个socket上发送一个消息帧
● zmq_recvmsg – 从一个socket上接收一个消息帧 (已弃用)
● zmq_sendmsg – 从一个socket上发送一个消息帧 (已弃用)
● zmq_proxy_steerable – 以STOP/RESUME/TERMINATE控制方式开启内置的ZMQ代理
● zmq_inproc – ØMQ 本地进程内(线程间)传输方式
● zmq_pgm – ØMQ 使用PGM 进行可靠的多路传输
● zmq_send_const – 从一个socket上发送一个固定内存数据
● zmq_setsockopt –设置ZMQ socket的属性
● zmq_getsockopt – 获取ZMQ socket的属性
一些使用ZMQ进行数据传输的C/C++实例