Class NetworkConfiguration
Network stack configuration
Inheritance
System.Object
NetworkConfiguration
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.Network.Config
Assembly: Cosmos.System2.dll
Syntax
public static class NetworkConfiguration
Fields
| Improve this Doc View SourceNetworkConfigs
Current network configuration used by the network stack
Declaration
public static List<NetworkConfig> NetworkConfigs
Field Value
Type | Description |
---|---|
System.Collections.Generic.List<NetworkConfig> |
Properties
| Improve this Doc View SourceCount
Network congiruations count
Declaration
public static int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
CurrentAddress
Current IPv4 address
Declaration
public static Address CurrentAddress { get; }
Property Value
Type | Description |
---|---|
Address |
CurrentNetworkConfig
Current network configuration used by the network stack
Declaration
public static NetworkConfig CurrentNetworkConfig { get; set; }
Property Value
Type | Description |
---|---|
NetworkConfig |
Methods
| Improve this Doc View SourceAddConfig(NetworkDevice, IPConfig)
Add new network config
Declaration
public static void AddConfig(NetworkDevice device, IPConfig config)
Parameters
Type | Name | Description |
---|---|---|
NetworkDevice | device | Network device. |
IPConfig | config | IP Config |
ClearConfigs()
Clear network configurations
Declaration
public static void ClearConfigs()
ConfigsContainsDevice(NetworkDevice)
Network stack contains device
Declaration
public static bool ConfigsContainsDevice(NetworkDevice k)
Parameters
Type | Name | Description |
---|---|---|
NetworkDevice | k |
Returns
Type | Description |
---|---|
System.Boolean |
Get(NetworkDevice)
Get ip config for network device
Declaration
public static IPConfig Get(NetworkDevice device)
Parameters
Type | Name | Description |
---|---|---|
NetworkDevice | device | Network device. |
Returns
Type | Description |
---|---|
IPConfig |
Remove(NetworkDevice)
Remove Config for network device
Declaration
public static void Remove(NetworkDevice key)
Parameters
Type | Name | Description |
---|---|---|
NetworkDevice | key |
SetCurrentConfig(NetworkDevice, IPConfig)
Set current network config
Declaration
public static void SetCurrentConfig(NetworkDevice device, IPConfig config)
Parameters
Type | Name | Description |
---|---|---|
NetworkDevice | device | Network device. |
IPConfig | config | IP Config |