InetAddress.from_string


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.22" ) ]
public InetAddress.from_string (string string)

Parses string as an IP address and creates a new InetAddress.

If address is an IPv6 address, it can also contain a scope ID (separated from the address by a `%`). Note that currently this behavior is platform specific. This may change in a future release.

Parameters:

string

a string representation of an IP address

Returns:

a new InetAddress corresponding to string, or null if string could not be parsed. Free the returned object with unref.