C# Класс NetworkCommsDotNet.Tools.HostInfo.IP

Host IP information
Показать файл Открыть проект

Открытые методы

Метод Описание
AverageNetworkLoadIncoming ( byte secondsToAverage ) : double

Returns the averaged value of CurrentNetworkLoadIncoming, as a value between 0 and 1, for a time window of up to 254 seconds. Triggers load analysis upon first call.

AverageNetworkLoadOutgoing ( byte secondsToAverage ) : double

Returns the averaged value of CurrentNetworkLoadIncoming, as a value between 0 and 1, for a time window of up to 254 seconds. Triggers load analysis upon first call.

FilteredLocalAddresses ( ) : List

Returns all allowed local IP addresses. Caches results for up to 5 second since the previous refresh. If RestrictLocalAdaptorNames has been set only returns IP addresses corresponding with specified adaptors. If RestrictLocalAddressRanges has been set only returns matching addresses ordered in descending preference. i.e. Most preferred at [0].

FilteredLocalAddresses ( bool forceCacheUpdate ) : List

Returns all allowed local IP addresses. Caches results for up to 5 second since the previous refresh unless forceCacheUpdate is true. If RestrictLocalAdaptorNames has been set only returns IP addresses corresponding with specified adaptors. If RestrictLocalAddressRanges has been set only returns matching addresses ordered in descending preference. i.e. Most preferred at [0].

Приватные методы

Метод Описание
NetworkLoadWorker ( ) : void

Takes a network load snapshot (CurrentNetworkLoad) every NetworkLoadUpdateWindowMS

ShutdownThreads ( int threadShutdownTimeoutMS = 1000 ) : void

Shutdown any background threads in the host tools

Описание методов

AverageNetworkLoadIncoming() публичный статический Метод

Returns the averaged value of CurrentNetworkLoadIncoming, as a value between 0 and 1, for a time window of up to 254 seconds. Triggers load analysis upon first call.
public static AverageNetworkLoadIncoming ( byte secondsToAverage ) : double
secondsToAverage byte Number of seconds over which historical data should be used to arrive at an average
Результат double

AverageNetworkLoadOutgoing() публичный статический Метод

Returns the averaged value of CurrentNetworkLoadIncoming, as a value between 0 and 1, for a time window of up to 254 seconds. Triggers load analysis upon first call.
public static AverageNetworkLoadOutgoing ( byte secondsToAverage ) : double
secondsToAverage byte Number of seconds over which historical data should be used to arrive at an average
Результат double

FilteredLocalAddresses() публичный статический Метод

Returns all allowed local IP addresses. Caches results for up to 5 second since the previous refresh. If RestrictLocalAdaptorNames has been set only returns IP addresses corresponding with specified adaptors. If RestrictLocalAddressRanges has been set only returns matching addresses ordered in descending preference. i.e. Most preferred at [0].
public static FilteredLocalAddresses ( ) : List
Результат List

FilteredLocalAddresses() публичный статический Метод

Returns all allowed local IP addresses. Caches results for up to 5 second since the previous refresh unless forceCacheUpdate is true. If RestrictLocalAdaptorNames has been set only returns IP addresses corresponding with specified adaptors. If RestrictLocalAddressRanges has been set only returns matching addresses ordered in descending preference. i.e. Most preferred at [0].
public static FilteredLocalAddresses ( bool forceCacheUpdate ) : List
forceCacheUpdate bool If true will refresh the cache and return latest result
Результат List