InetSocketAddress.newFromString

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 %).

class InetSocketAddress
static
newFromString
(
string address
,
uint port
)

Parameters

address string

the string form of an IP address

port uint

a port number

Return Value

Type: gio.inet_socket_address.InetSocketAddress

a new #GInetSocketAddress, or null if address cannot be parsed.