Property | Type | Description | |
---|---|---|---|
$host | string | The server hostname (IDN encoded). | |
$label | integer | The server label. | |
$port | integer | The server port. | |
$tls | mixed | 'tls' = TLS needed for direct connection to server/port. 'starttls' = Switch to TLS via protocol after connection. false = No TLS connection used. | |
$username | string | The username to use. |
Method | Description | |
---|---|---|
valid ( array $opts = [] ) : boolean | Check to see if server can be connected to. |
abstract public valid ( array $opts = [] ) : boolean | ||
$opts | array | Additional options: - auth: (mixed) The authentication credentials used to test a successful connection. - insecure: (boolean) If true, will attempt insecure authentication. - users: (array) A list of usernames to attempt if trying auth. If successful, the username will be stored in $username. |
return | boolean | True if server is valid. |
public mixed $tls | ||
return | mixed |