Свойство | Тип | Описание | |
---|---|---|---|
Bf2StatsHost | string | ||
DnsCacheReport | |||
GamespyHosts | string[] | ||
GamespyServerAddress | |||
StatsServerAddress |
Метод | Описание | |
---|---|---|
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
|
Метод | Описание | |
---|---|---|
DnsFlushResolverCache ( ) : |
||
DnsFlushResolverCacheEntry ( string hostName ) : int | ||
RemoveRedirects ( |
Removes all gamespy related redirects in the specified hosts file container
|
public static ApplyRedirectsAsync ( IProgress |
||
Progress | IProgress |
|
Результат | Task |
public static RebuildDNSCache ( |
||
CancelToken | ||
Результат | void |
public static RemoveRedirects ( ) : void | ||
Результат | void |
public static SetRedirectMode ( RedirectMode Mode ) : bool | ||
Mode | RedirectMode | The new redirect mode |
Результат | bool |
public static VerifyDNSCache ( IProgress |
||
Progress | IProgress |
|
Результат | bool |
public static GamespyDnsReport,BF2Statistics.Gamespy.Redirector DnsCacheReport | ||
Результат |
public static IPAddress,System.Net GamespyServerAddress | ||
Результат |