OptionFailed
Less than 1 minute
OptionFailed
Exception thrown when setting a socket option fails.
class OptionFailed extends \Hazaar\Socket\Exception\ExceptionThis exception is triggered when the socket_set_option() function fails to set an option on a socket resource. It provides the reason for the failure using the socket_strerror() function.
Methods
__construct
Constructs a new OptionFailed exception.
public __construct(\Socket $socket): voidParameters
| Parameter | Type | Description |
|---|---|---|
$socket | \Socket | the socket resource for which the option could not be set |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:23 +0000