MediaWiki REL1_33
|
Public Member Functions | |
__construct ( $domain) | |
getServers () | |
Fetch the servers with a DNS SRV request. | |
pickServer (array $servers) | |
Pick a server according to the priority fields. | |
removeServer ( $server, array $servers) | |
Protected Member Functions | |
getDnsRecords () | |
Private Attributes | |
string | $domain |
Definition at line 26 of file DnsSrvDiscoverer.php.
DnsSrvDiscoverer::__construct | ( | $domain | ) |
|
protected |
Definition at line 105 of file DnsSrvDiscoverer.php.
References and().
Referenced by getServers().
DnsSrvDiscoverer::getServers | ( | ) |
Fetch the servers with a DNS SRV request.
Definition at line 44 of file DnsSrvDiscoverer.php.
References $result, and getDnsRecords().
DnsSrvDiscoverer::pickServer | ( | array | $servers | ) |
Pick a server according to the priority fields.
Note that weight is currently ignored.
array | $servers | from getServers |
Definition at line 65 of file DnsSrvDiscoverer.php.
References and().
DnsSrvDiscoverer::removeServer | ( | $server, | |
array | $servers ) |
array | $server | |
array | $servers |
Definition at line 91 of file DnsSrvDiscoverer.php.
References and().
|
private |
Definition at line 30 of file DnsSrvDiscoverer.php.
Referenced by __construct().