The HostInfo IP type exposes the following members.
Back to Top
Back to Top
Methods
Name | Description | |
---|---|---|
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.
| |
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.
| |
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].
| |
FilteredLocalAddresses(Boolean) |
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].
|
Properties
Name | Description | |
---|---|---|
CurrentNetworkLoadIncoming |
Returns the current instance network usage, as a value between 0 and 1. Returns the largest value for any available
network adaptor. Triggers load analysis upon first call.
| |
CurrentNetworkLoadOutgoing |
Returns the current instance network usage, as a value between 0 and 1. Returns the largest value for any available network
adaptor. Triggers load analysis upon first call.
| |
InterfaceLinkSpeed |
The interface link speed in bits/sec used for network load calculations. Default is 100Mb/sec
| |
NetworkLoadUpdateWindowMS |
The number of milliseconds over which to take an instance load (CurrentNetworkLoad) to be used in averaged
values (AverageNetworkLoad). Default is 2000ms. Shorter values can be used but less than 200ms may cause significant
errors in the value of returned value, especially in mono environments.
| |
RestrictLocalAddressRanges |
Restricts the IPAdddresses that are returned by FilteredLocalAddresses .
If using StartListening overrides that do not take IPEndPoints NetworkComms.Net
will only listen on IP Addresses within provided ranges. Also see RestrictLocalAdaptorNames.
The order of provided ranges determines the order of IPAddresses returned by FilteredLocalAddresses .
|
See Also