OpenSwoole Server exist()

Latest version: pecl install openswoole-22.1.2 | composer require openswoole/core:22.1.5

Declaration

<?php OpenSwoole\Server->exist(int $fd): bool

Parameters

fd

The file descriptor number of the client connection you want to check exists or not

Return

success

If success, it returns 'true', otherwise it returns false.

Description

Check whether the $fd which indicates a TCP client connection exists or not.

Returns true if it does and false if it does not exist.

This method is completely asynchronous, no IO operations as it is based off shared memory.

Last updated on September 1, 2022