Namespace Solid.Networking |
|
This class allow to query the underlying system to discover the available network interfaces and reachable network.It has also the responsibility to notify when a network interface or a network appear or disappear. It's the unique entry point for network management. Applications should use it to find network interfaces, or to be notified about network related changes. Note that it's implemented as a singleton and encapsulates the backend logic. |
|
Retrieve a policy managing the application's connect behaviour Returns the connection policy in use |
|
Retrieve a policy managing the application's disconnect behaviour Returns the disconnection policy in use |
|
|
Set a policy to manage the application's connect behaviour
policy - the new connection policy |
|
Set a policy to manage the application's disconnect behaviour
policy - the new disconnection policy |
|
Get the current networking status |
This defines application policy in response to networking connect/disconnect events
Manual | - | - | ||
OnNextStatusChange | - | - | ||
Managed | - | - |
Describes the state of the networking system
Unknown | - | - | the networking system is not active or unable to report its status - proceed with caution | |
Unconnected | - | - | the system is not connected to any network | |
Disconnecting | - | - | the system is breaking the connection | |
Connecting | - | - | the system is not connected to any network | |
Connected | - | - | the system is currently connected to a network |