# Namespace Solid.Networking

Module | solid
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.

### classes

### enums

- ManagementPolicy { Manual, OnNextStatusChange, Managed }
- Status { Unknown, Unconnected, Disconnecting, Connecting, Connected }

enum details

### methods

- connectPolicy ( )

  returns Solid::Networking.ManagementPolicy
  Not implemented

  Retrieve a policy managing the application's connect behaviour Returns the connection policy in use

- disconnectPolicy ( )

  returns Solid::Networking.ManagementPolicy
  Not implemented

  Retrieve a policy managing the application's disconnect behaviour Returns the disconnection policy in use

- notifier ( )

  returns Solid::Networking.Notifier
  Not implemented

- setConnectPolicy (policy)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  policy | Solid::Networking.ManagementPolicy |

  Set a policy to manage the application's connect behaviour

  policy - the new connection policy

- setDisconnectPolicy (policy)

  returns Nothing
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  policy | Solid::Networking.ManagementPolicy |

  Set a policy to manage the application's disconnect behaviour

  policy - the new disconnection policy

- status ( )

  returns Solid::Networking.Status

  Get the current networking status

### enums - detail

- ManagementPolicy { Manual, OnNextStatusChange, Managed }

  This defines application policy in response to networking connect/disconnect events

  | Manual | - | - |
  | OnNextStatusChange | - | - |
  | Managed | - | - |

- Status { Unknown, Unconnected, Disconnecting, Connecting, Connected }

  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