Port
class Port
Properties
| protected string | $name | ||
| protected int | $type | ||
| protected string | $host | ||
| protected int | $port | ||
| protected int | $sockType | ||
| protected array | $callbacks | ||
| protected array | $settings |
Methods
string
getName()
Get the server name.
int
getType()
Get the server type.
string
getHost()
Get the server host.
int
getPort()
Get the server port.
int
getSockType()
Get the socket type.
setSockType(int $sockType)
Set the socket type.
array
getCallbacks()
Get the server callbacks.
setCallbacks(array $callbacks)
Set the server callbacks.
array
getSettings()
Get the server settings.
setSettings(array $settings)
Set the server settings.
Details
at line 29
static Port
build(array $config)
Build a port instance from a configuration array.
at line 48
string
getName()
Get the server name.
at line 56
Port
setName(string $name)
Set the server name.
at line 65
int
getType()
Get the server type.
at line 73
Port
setType(int $type)
Set the server type.
at line 82
string
getHost()
Get the server host.
at line 90
Port
setHost(string $host)
Set the server host.
at line 99
int
getPort()
Get the server port.
at line 107
Port
setPort(int $port)
Set the server port.
at line 116
int
getSockType()
Get the socket type.
at line 124
Port
setSockType(int $sockType)
Set the socket type.
at line 133
array
getCallbacks()
Get the server callbacks.
at line 141
Port
setCallbacks(array $callbacks)
Set the server callbacks.
at line 150
array
getSettings()
Get the server settings.
at line 158
Port
setSettings(array $settings)
Set the server settings.