InetAddressMask.from_string


Description:

public InetAddressMask.from_string (string mask_string) throws Error

Parses mask_string as an IP address and (optional) length, and creates a new InetAddressMask.

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:

mask_string

an IP address or address/length string

Returns:

a new InetAddressMask corresponding to string, or null on error.