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.

Parameters

string $host
int $port
float|null $timeout
array $protocol

at line 25
string getHost()

Get the host.

Return Value

string

at line 33
int getPort()

Get the port.

Return Value

int

at line 41
float|null getTimeout()

Get the connection timeout in seconds.

Return Value

float|null

at line 49
array getProtocol()

Get the protocol configuration.

Return Value

array