PHP 8.4.0 RC4 available for testing

Swoole\Server::getClientInfo

(PECL swoole >= 1.9.0)

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

Descripción

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

Parámetros

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.

Valores devueltos

Returns information about the client connection.

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top