php8.5
Home/ Manual/ event / eventutil/ EventUtil::getLastSocketError

EventUtil::getLastSocketError

PHP function Edit on GitHub ✎

(PECL event >= 1.2.6-beta)

Returns the most recent socket error

Description

EventUtil::getLastSocketError([mixed $socket]): string

Returns the most recent socket error.

Parameters

socket

Socket resource, stream or a file descriptor of a socket.

Return Values

Returns the most recent socket error.

See Also

  • EventUtil::getLastSocketErrno

Source: reference/event/eventutil/getlastsocketerror.xml · from the official PHP manual (php/doc-en)