IPAddress
Object Hierarchy:
Description:
[ CCode ( ref_function = "nm_ip_address_ref" , type_id = "nm_ip_address_get_type ()" , unref_function = "nm_ip_address_unref" ) ]
[ Compact ]
public class IPAddress
Content:
Creation methods:
Methods:
- public void @ref ()
Increases the reference count of the object.
- public int cmp_full (IPAddress b, IPAddressCmpFlags cmp_flags)
Note that with cmp_flags
WITH_ATTRS, there is no total order for comparing GVariant.
- public IPAddress dup ()
Creates a copy of this
- public bool equal (IPAddress other)
Determines if two IPAddress objects contain
the same address and prefix (attributes are not compared).
- public unowned string get_address ()
Gets the IP address property of this address object.
- public unowned Variant get_attribute (string name)
Gets the value of the attribute with name name
on
this
- public string[] get_attribute_names ()
Gets an array of attribute names defined on
this.
- public int get_family ()
Gets the IP address family (eg, AF_INET) property of this address
object.
- public uint get_prefix ()
Gets the IP address prefix (ie "24" or "30" etc) property of this
address object.
- public void set_address (string addr)
Sets the IP address property of this address object.
- public void set_attribute (string name, Variant? value)
Sets or clears the named attribute on this
to the given value.
- public void set_prefix (uint prefix)
Sets the IP address prefix property of this address object.
- public void unref ()
Decreases the reference count of the object.