close

用于TCP/WebSocket请求

断开当前fd的连接

调用的是get_instance的close方法,但会默认自动销毁,并且在单元测试中会记录用户的操作。

函数原型:

    /**
     * 断开链接
     * @param $fd
     * @param bool $autoDestory
     */
    protected function close($fd, $autoDestory = true)

results matching ""

    No results matching ""