InetAddress.newFromString

Parses string as an IP address and creates a new #GInetAddress.

class InetAddress
static
newFromString
(
string string_
)

Parameters

string_ string

a string representation of an IP address

Return Value

Type: gio.inet_address.InetAddress

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