Class

GioInetAddressMask

Description [src]

class Gio.InetAddressMask : GObject.Object {
  parent_instance: GObject
}

GInetAddressMask represents a range of IPv4 or IPv6 addresses described by a base address and a length indicating how many bits of the base address are relevant for matching purposes. These are often given in string form. Eg, “10.0.0.0/8”, or “fe80::/10”.

Available since:2.32

Hierarchy

hierarchy this GInetAddressMask implements_0 GInitable this--implements_0 ancestor_0 GObject ancestor_0--this

Ancestors

Implements

Constructors

g_inet_address_mask_new

Creates a new GInetAddressMask representing all addresses whose first length bits match addr.

Available since: 2.32

g_inet_address_mask_new_from_string

Parses mask_string as an IP address and (optional) length, and creates a new GInetAddressMask. The length, if present, is delimited by a “/”. If it is not present, then the length is assumed to be the full length of the address.

Available since: 2.32

Instance methods

g_inet_address_mask_equal

Tests if mask and mask2 are the same mask.

Available since: 2.32

g_inet_address_mask_get_address

Gets masks base address.

Available since: 2.32

g_inet_address_mask_get_family

Gets the GSocketFamily of masks address.

Available since: 2.32

g_inet_address_mask_get_length

Gets masks length.

Available since: 2.32

g_inet_address_mask_matches

Tests if address falls within the range described by mask.

Available since: 2.32

g_inet_address_mask_to_string

Converts mask back to its corresponding string form.

Available since: 2.32

Methods inherited from GObject (43)
Methods inherited from GInitable (1)
g_initable_init

Initializes the object implementing the interface.

Available since: 2.22

Properties

Gio.InetAddressMask:address
No description available.
Gio.InetAddressMask:family
No description available.
Gio.InetAddressMask:length
No description available.

Signals

Signals inherited from GObject (1)

Class structure

struct GioInetAddressMaskClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.