ListenFailed
Less than 1 minute
ListenFailed
Exception thrown when a socket listen operation fails.
class ListenFailed extends \Hazaar\Socket\Exception\ExceptionThis exception is triggered when the socket_listen() function fails to listen for connections on a socket. It provides the reason for the failure using the socket_strerror() function.
Methods
__construct
Constructs a new ListenFailed exception.
public __construct(\Socket $socket): voidParameters
| Parameter | Type | Description |
|---|---|---|
$socket | \Socket | the socket resource that failed to listen |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:23 +0000