SocketOption
class SocketOption implements SocketOptionInterface
Methods
__construct(string $host, int $port, float|null $timeout = null, array $protocol = [])
Create a new socket option instance.
string
getHost()
Get the host.
int
getPort()
Get the port.
float|null
getTimeout()
Get the connection timeout in seconds.
array
getProtocol()
Get the protocol configuration.
Details
at line 14
__construct(string $host, int $port, float|null $timeout = null, array $protocol = [])
Create a new socket option instance.
at line 25
string
getHost()
Get the host.
at line 33
int
getPort()
Get the port.
at line 41
float|null
getTimeout()
Get the connection timeout in seconds.
at line 49
array
getProtocol()
Get the protocol configuration.