Свойство | Тип | Описание | |
---|---|---|---|
$hostname | string | The client's hostname, as seen by the server. This variable is only set after calling lookup_hostname, as hostname lookups can take up a decent amount of time. | |
$ip | The client's IP address, as seen by the server | ||
$port | If given, this will hold the port associated to address | ||
$socket | The client's socket resource, for sending and receiving data with |
Метод | Описание | |
---|---|---|
__construct ( resource &$socket ) | Creates the client | |
__toString ( ) : string | String representation of the client | |
disconnect ( ) | Closes the socket | |
getHostname ( ) : string | Gets the IP hostname | |
getSocket ( ) : socket | Returns this clients socket |
public __construct ( resource &$socket ) | ||
$socket | resource | The resource of the socket the client is connecting by, generally the master socket. |
public __toString ( ) : string | ||
Результат | string |
public getSocket ( ) : socket | ||
Результат | socket |
protected string $hostname | ||
Результат | string |