InetAddressMask.newFromString

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 the full length of the address.

Parameters

maskStringan IP address or address/length string

Returns

a new #GInetAddressMask corresponding to string, or null

on error.

Throws

[ErrorWrap]