Swoole Swoole\Server::getClientInfo
(PECL swoole >= 1.9.0)
Swoole\Server::getClientInfo — 파일 설명으로 연결 정보를 가져옵니다.
설명
public Swoole\Server::getClientInfo(int $fd
, int $reactor_id
= ?, bool $ignore_error
= ?): array
매개변수
fd
- 파일 설명자.
reactor_id
- 연결이 이루어진 Reactor 스레드 ID입니다.
ignore_error
- 오류 무시 여부를 true로 설정하면 연결이 끊어져도 연결 정보를 반환합니다.
반환 값
클라이언트 연결에 대한 정보를 반환합니다.