InetAddressMask

constructor(addr: InetAddress, length: <Error class: unknown class>)

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

Return

a new #GInetAddressMask, or null on error

Since

2.32

Parameters

addr

a #GInetAddress

length

number of bits of @addr to use


constructor(maskString: 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.

Return

a new #GInetAddressMask corresponding to @string, or null on error.

Since

2.32

Parameters

maskString

an IP address or address/length string


constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)