parse

fun parse(hostAndPort: String, defaultPort: <Error class: unknown class>): <Error class: unknown class><NetworkAddress>

Creates a new #GSocketConnectable for connecting to the given

Return

the new #GNetworkAddress, or null on error

Since

2.22

Parameters

hostAndPort

the hostname and optionally a port

defaultPort

the default port if not in @host_and_port