ActiveConnection
Object Hierarchy:
Description:
[ CCode ( type_id = "nm_active_connection_get_type ()" ) ]
public sealed class ActiveConnection : Object
public sealed class ActiveConnection : Object
All known sub-classes:
Namespace: NM
Package: libnm
Content:
Constants:
- public const string CONNECTION
- public const string CONTROLLER
- public const string DEFAULT
- public const string DEFAULT6
- public const string DEVICES
- public const string DHCP4_CONFIG
- public const string DHCP6_CONFIG
- public const string ID
- public const string IP4_CONFIG
- public const string IP6_CONFIG
- public const string MASTER
- public const string SPECIFIC_OBJECT_PATH
- public const string STATE
- public const string STATE_FLAGS
- public const string TYPE
- public const string UUID
- public const string VPN
Properties:
- public bool @default { get; }
Whether the active connection is the default IPv4 one.
- public RemoteConnection connection { get; }
The connection that this is an active instance of.
- public Device controller { get; }
The controller device if one exists.
- public bool default6 { get; }
Whether the active connection is the default IPv6 one.
- public GenericArray<Device> devices { get; }
The devices of the active connection.
- public DhcpConfig dhcp4_config { get; }
The IPv4 DhcpConfig of the connection.
- public DhcpConfig dhcp6_config { get; }
The IPv6 DhcpConfig of the connection.
- public string id { get; }
The active connection's ID
- public IPConfig ip4_config { get; }
The IPv4 IPConfig of the connection.
- public IPConfig ip6_config { get; }
The IPv6 IPConfig of the connection.
- public Device master { get; }
The master device if one exists.
- public string specific_object_path { get; }
The path to the "specific object" of the active connection; see get_specific_object_path for more details.
- public ActiveConnectionState state { get; }
The state of the active connection.
- public uint state_flags { get; }
The state flags of the active connection.
- public string type { owned get; }
The active connection's type
- public string uuid { get; }
The active connection's UUID
- public bool vpn { get; }
Whether the active connection is a VPN connection.
Creation methods:
- protected ActiveConnection ()
Methods:
- public unowned RemoteConnection get_connection ()
Gets the RemoteConnection associated with this.
- public unowned string get_connection_type ()
Gets the Connection 's type.
- public void* get_controller ()
Gets the controller Device of the connection.
- public bool get_default ()
Whether the active connection is the default IPv4 one (that is, is used for the default IPv4 route and DNS information).
- public bool get_default6 ()
Whether the active connection is the default IPv6 one (that is, is used for the default IPv6 route and DNS information).
- public unowned GenericArray<Device> get_devices ()
Gets the Devices used for the active connections.
- public unowned DhcpConfig get_dhcp4_config ()
Gets the current IPv4 DhcpConfig (if any) associated with the ActiveConnection .
- public unowned DhcpConfig get_dhcp6_config ()
Gets the current IPv6 DhcpConfig (if any) associated with the ActiveConnection .
- public unowned string get_id ()
Gets the Connection 's ID.
- public unowned IPConfig get_ip4_config ()
Gets the current IPv4 IPConfig associated with the ActiveConnection.
- public unowned IPConfig get_ip6_config ()
Gets the current IPv6 IPConfig associated with the ActiveConnection.
- public void* get_master ()
Gets the master Device of the connection.
- public unowned string get_specific_object_path ()
Gets the path of the "specific object" used at activation.
- public ActiveConnectionState get_state ()
Gets the active connection's state.
- public ActivationStateFlags get_state_flags ()
Gets the active connection's state flags.
- public ActiveConnectionStateReason get_state_reason ()
Gets the reason for active connection's state.
- public unowned string get_uuid ()
Gets the Connection 's UUID.
- public bool get_vpn ()
Whether the active connection is a VPN connection.
Signals:
- public signal void state_changed (uint state, uint reason)
Inherited Members:
All known members inherited from class GLib.Object