InetSocketAddress.newFromString

gio.inet_socket_address.InetSocketAddress newFromString(string address, uint port)

Creates a new #GInetSocketAddress for address and port.

If address is an IPv6 address, it can also contain a scope ID (separated from the address by a `%`).

Parameters

addressthe string form of an IP address
porta port number

Returns

a new #GInetSocketAddress,

or null if address cannot be parsed.