InetAddressMask.newFromString

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.

class InetAddressMask
static
newFromString
(
string maskString
)

Parameters

maskString string

an IP address or address/length string

Return Value

Type: gio.inet_address_mask.InetAddressMask

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