\D3strukt0r\Votifier\Client\Server
GenericServer¶
-
class
D3strukt0r\Votifier\Client\Server\GenericServer¶ An abstract class that has all the important functions included for every server.
-
protected property
$socket¶ D3strukt0r\Votifier\Client\Socket— The socket object
-
protected property
$host¶ string — The domain or ip to connect to Votifier
-
protected property
$port¶ int — The port which votifier uses on the server
-
protected property
$publicKey¶ string — The public.key which is generated by the plugin
-
public
getSocket() → Socket¶ Gets the Socket.
Returns: D3strukt0r\Votifier\Client\Socket— Returns a Socket object
-
public
setSocket($socket) → $this¶ Sets the Socket.
Parameters: - $socket (string) – The socket object
Returns: $this — Returns the class itself, for doing multiple things at once
-
public
getHost() → string|null¶ Gets the host.
Returns: string|null — Returns the host
-
public
setHost($host) → $this¶ Sets the host.
Parameters: - $host (string) – The host
Returns: $this — Returns the class itself, for doing multiple things at once
-
public
getPort() → int¶ Gets the port.
Returns: int — Returns the port
-
public
setPort($port) → $this¶ Sets the port.
Parameters: - $port (int) – The port
Returns: $this — Returns the class itself, for doing multiple things at once
-
public
getPublicKey() → string|null¶ Gets the public key.
Returns: string|null — Returns the public key
-
public
setPublicKey($publicKey) → $this¶ Sets the public key.
Parameters: - $publicKey (string) – The public key
Returns: $this — Returns the class itself, for doing multiple things at once
-
protected property