略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Swoole\Server::getClientInfo

2025-02-27

Swoole\Server::getClientInfo

(PECL swoole >= 1.9.0)

Swoole\Server::getClientInfoGet the connection info by file description.

说明

public Swoole\Server::getClientInfo(int $fd, int $reactor_id = ?, bool $ignore_error = ?): array

参数

fd

File descriptors.

reactor_id

The Reactor thread ID where the connection is made.

ignore_error

Whether to ignore errors, if set to true, connection information will be returned even if the connection is closed.

返回值

Returns information about the client connection.

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/swoole-server.getclientinfo.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3