gio.inet_address_mask

Module for [InetAddressMask] class

Types 3

[gio.inet_address_mask.InetAddressMask] 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. For example, 10.0.0.0/8, or fe80::/10.

Methods
GType _gType() @property
InetAddressMask self()Returns `this`, for use in `with` statements.
InetAddressMaskGidBuilder builder()Get builder for [gio.inetaddressmask.InetAddressMask] Returns: New builder object
gio.inet_address.InetAddress address() @propertyGet `address` property. Returns: The base address.
void address(gio.inet_address.InetAddress propval) @propertySet `address` property. Params: propval = The base address.
gio.types.SocketFamily family() @propertyGet `family` property. Returns: The address family (IPv4 or IPv6).
uint length() @propertyGet `length` property. Returns: The prefix length, in bytes.
void length(uint propval) @propertySet `length` property. Params: propval = The prefix length, in bytes.
gio.inet_address_mask.InetAddressMask newFromString(string maskString)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...
bool equal(gio.inet_address_mask.InetAddressMask mask2)Tests if mask and mask2 are the same mask.
gio.inet_address.InetAddress getAddress()Gets mask's base address Returns: mask's base address
gio.types.SocketFamily getFamily()Gets the #GSocketFamily of mask's address Returns: the #GSocketFamily of mask's address
uint getLength()Gets mask's length Returns: mask's length
bool matches(gio.inet_address.InetAddress address)Tests if address falls within the range described by mask.
string toString_()Converts mask back to its corresponding string form. Returns: a string corresponding to mask.
Constructors
this(void * ptr, Flag!"Take" take)
this(gio.inet_address.InetAddress addr, uint length)Creates a new #GInetAddressMask representing all addresses whose first length bits match addr.
Methods
T address(gio.inet_address.InetAddress propval)Set `address` property. Params: propval = The base address. Returns: Builder instance for fluent chaining
T length(uint propval)Set `length` property. Params: propval = The prefix length, in bytes. Returns: Builder instance for fluent chaining

Fluent builder for [gio.inet_address_mask.InetAddressMask]