Swoole Server exist

bool Swoole\Server::exist ( int $fd )

Alias: swoole_server->exist( int $fd )

Check whether the $fd which indicates a TCP client is existed.

Parameter

  • $fd the id number of client

Return

the existence of $fd client

Example