“慢生活”不是懒惰,放慢速度不是拖延时间,而是让我们在生活中寻找到平衡。网站首页慢生活
workerman类TcpConnection的接口getRemoteIp获取远端对端ip
发布时间:2021-12-03 23:38:26作者:雪饮[程序人生]
getRemoteIp说明:string Connection::getRemoteIp()获得该连接的客户端ip 参数无参数 实例:<?phpuse Workerman\Worker;use Workerman\Connection\TcpConnection;require_o
详细信息>>workerman类TcpConnection的接口getRemotePort获取远端对端端口
发布时间:2021-12-03 23:37:34作者:雪饮[程序人生]
getRemotePort说明:int Connection::getRemotePort()获得该连接的客户端端口 参数无参数 实例:<?phpuse Workerman\Worker;use Workerman\Connection\TcpConnection;requi
详细信息>>workerman类TcpConnection的接口close
发布时间:2021-12-03 23:37:08作者:雪饮[程序人生]
close说明:void Connection::close(mixed $data = '')安全的关闭连接. 调用close会等待发送缓冲区的数据发送完毕后才关闭连接,并触发连接的onClose回调。 参数$data 可选参
详细信息>>workerman类TcpConnection的maxSendBufferSize属性(缓冲区过载的影响因素)
发布时间:2021-12-03 21:55:50作者:雪饮[程序人生]
maxSendBufferSize说明:int Connection::$maxSendBufferSize每个连接都有一个单独的应用层发送缓冲区,如果客户端接收速度小于服务端发送速度,数据会在应用层缓冲区暂存等待
详细信息>>workerman类TcpConnection的maxPackageSize属性(最大接收包大小)
发布时间:2021-12-03 21:55:00作者:雪饮[程序人生]
maxPackageSize说明:static int Connection::$defaultMaxPackageSize此属性为全局静态属性,用来设置每个连接能够接收的最大包包长。不设置默认为10MB。 如果发来的数据包解
详细信息>>