ZeroMQ (ZMQ) function interface English-Chinese literal translation

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_bind  -  bind a socket

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_close – 释放一个ZMQ消息

● zmq_msg_send – 从一个socket发送一个消息帧

● zmq_term - 终结ZMQ环境上下文(context)(已弃用)

● zmq_strerror - 获取ZMQ错误描述字符串

● zmq_poll - I/O多路技术

● zmq_tcp – 使用TCP协议的ØMQ网络单播协议

● zmq_recv – 从一个socket上接收一个消息帧

● zmq_send – 在一个socket上发送一个消息帧

● zmq_proxy – 开始ZMQ内置代理

● zmq_recvmsg – 从一个socket上接收一个消息帧 (已弃用)

● zmq_sendmsg – 从一个socket上发送一个消息帧 (已弃用)

● zmq_ipc – ZMQ本地进程间通信传输协议

● zmq_proxy_steerable – 以STOP/RESUME/TERMINATE控制方式开启内置的ZMQ代理

● zmq_inproc – ØMQ 本地进程内(线程间)传输方式

● zmq_pgm – ØMQ 使用PGM 进行可靠的多路传输

● zmq_send_const – 从一个socket上发送一个固定内存数据

● zmq_socket – 创建ZMQ套接字

● zmq_setsockopt –设置ZMQ socket的属性

● zmq_getsockopt  获取ZMQ socket的属性

 

一些使用ZMQ进行数据传输的C/C++实例

● ZeroMQ实例-使用ZMQ(ZeroMQ)进行局域网内网络通信

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325507614&siteId=291194637
zmq