Methods |
public
|
__construct(array $server_info = [])
Construct the class with the passed options
Construct the class with the passed options
Throws
|
#
|
protected
|
checkAndSetIpPort($ip_address)
Check and set the ip address for this server
Check and set the ip address for this server
Throws
|
#
|
protected
|
checkAndSetServerOptions()
Check and set any server specific options
Check and set any server specific options
|
#
|
public
|
setOption($key, $value): $this
Set an option for this server
Set an option for this server
|
#
|
public
|
getOption(mixed $key): mixed
|
#
|
public
|
getOptions()
|
#
|
public
|
id(): string
Get the ID for this server
Get the ID for this server
|
#
|
public
|
ip(): string
Get the IP address for this server
Get the IP address for this server
|
#
|
public
|
portClient(): int
Get the client port for this server
Get the client port for this server
|
#
|
public
|
portQuery(): int
Get the query port for this server
Get the query port for this server
|
#
|
public
|
protocol(): Protocol
Return the protocol class for this server
Return the protocol class for this server
|
#
|
public
|
getJoinLink(): null|string
Get the join link for this server
Get the join link for this server
|
#
|
public
|
socketAdd(Core $socket)
Add a socket for this server to be reused
Add a socket for this server to be reused
|
#
|
public
|
socketGet(): Core|null
Get a socket from the list to reuse, if any are available
Get a socket from the list to reuse, if any are available
|
#
|
public
|
socketCleanse()
Clear any sockets still listed and attempt to close them
Clear any sockets still listed and attempt to close them
|
#
|