Property | Type | Description | |
---|---|---|---|
Bf2StatsHost | string | ||
DnsCacheReport | |||
GamespyHosts | string[] | ||
GamespyServerAddress | |||
StatsServerAddress |
Method | Description | |
---|---|---|
ApplyRedirectsAsync ( IProgress |
Applies the specified IP address redirects for the chosen redirect method
|
|
Initialize ( ) : Task |
The main entry point for the redirector
|
|
RebuildDNSCache ( |
Preforms the pings required to fill the dns cache. The reason we ping, is because once the HOSTS file is locked, any request made to a url (when the DNS cache is empty), will skip the hosts file, because it cant be read. If we ping first, then the DNS cache fills up with the IP addresses in the hosts file.
|
|
RemoveRedirects ( ) : void |
Remove the redirects currently active
|
|
SetRedirectMode ( RedirectMode Mode ) : bool |
Sets a new Redirect method. Using this method removes any previous redirects
|
|
VerifyDNSCache ( IProgress |
Queries the DNS Cache for the Gamespy hosts, and verifies that the IP addresses in the DNS Cache match that of the desired redirect IP
|
Method | Description | |
---|---|---|
DnsFlushResolverCache ( ) : |
||
DnsFlushResolverCacheEntry ( string hostName ) : int | ||
RemoveRedirects ( |
Removes all gamespy related redirects in the specified hosts file container
|
public static ApplyRedirectsAsync ( IProgress |
||
Progress | IProgress |
|
return | Task |
public static RebuildDNSCache ( |
||
CancelToken | ||
return | void |
public static SetRedirectMode ( RedirectMode Mode ) : bool | ||
Mode | RedirectMode | The new redirect mode |
return | bool |
public static VerifyDNSCache ( IProgress |
||
Progress | IProgress |
|
return | bool |
public static GamespyDnsReport,BF2Statistics.Gamespy.Redirector DnsCacheReport | ||
return |
public static IPAddress,System.Net GamespyServerAddress | ||
return |