跳到主要内容

recv

接收消息

声明

array recv(int max_size, buffer ret_buf, int offset, int timeout)

参数

参数名描述
max_size接收的消息的最大长度

返回值

array [长度, 内容]如果长度为 -1 代表发生错误

使用方式

返回文档