Swoole\Server::getClientInfo
PHP function
Edit on GitHub ✎
(PECL swoole >= 1.9.0)
Get the connection info by file description.
Description
Swoole\Server::getClientInfo(int $fd, [int $reactor_id], [bool $ignore_error]): array
Parameters
fdFile descriptors.
reactor_idThe Reactor thread ID where the connection is made.
ignore_errorWhether to ignore errors, if set to true, connection information will be returned even if the connection is closed.
Return Values
Returns information about the client connection.