connectToUri
open fun connectToUri(uri: String, defaultPort: <Error class: unknown class>, cancellable: Cancellable? = null): <Error class: unknown class><SocketConnection>
This is a helper function for g_socket_client_connect().
Attempts to create a TCP connection with a network URI.
Return
a #GSocketConnection on success, null on error.
Since
2.26
Parameters
uri
A network URI
defaultPort
the default port to connect to
cancellable
a #GCancellable, or null