跳到主要内容

recv

接收消息

声明

buffer recv(int max_size = 65536, int timeout = 3)

参数

参数名描述
max_size最长接收的消息长度
timeout超时时间

返回值

buffer 接收到的内容

使用方式

返回文档