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
InetAddressMaskGidBuilder builder() static nothrowGet builder for [gio.inet_address_mask.InetAddressMask] Returns: New builder objectgio.inet_address.InetAddress address() @property nothrowGet `address` property. Returns: The base address.void address(gio.inet_address.InetAddress propval) @property nothrowSet `address` property. Params: propval = The base address.gio.types.SocketFamily family() @property nothrowGet `family` property. Returns: The address family (IPv4 or IPv6).void length(uint propval) @property nothrowSet `length` property. Params: propval = The prefix length, in bytes.gio.inet_address_mask.InetAddressMask newFromString(string maskString) staticParses 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) nothrowTests if mask and mask2 are the same mask.gio.inet_address.InetAddress getAddress() nothrowGets mask's base address Returns: mask's base addressgio.types.SocketFamily getFamily() nothrowGets the #GSocketFamily of mask's address Returns: the #GSocketFamily of mask's addressbool matches(gio.inet_address.InetAddress address) nothrowTests if address falls within the range described by mask.string toString_() nothrowConverts mask back to its corresponding string form. Returns: a string corresponding to mask.Constructors
this(gio.inet_address.InetAddress addr, uint length)Creates a new #GInetAddressMask representing all addresses whose first length bits match addr.classInetAddressMaskGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.initable.InitableGidBuilderImpl!T
Fluent builder implementation template for gio.inet_address_mask.InetAddressMask
Methods
T address(gio.inet_address.InetAddress propval) nothrowSet `address` property. Params: propval = The base address. Returns: Builder instance for fluent chainingT length(uint propval) nothrowSet `length` property. Params: propval = The prefix length, in bytes. Returns: Builder instance for fluent chainingFluent builder for gio.inet_address_mask.InetAddressMask
Methods