SocketConnection.connect

bool connect(gio.socket_address.SocketAddress address, gio.cancellable.Cancellable cancellable = null)

Connect connection to the specified remote address.

Parameters

addressa #GSocketAddress specifying the remote address.
cancellablea [gio.cancellable.Cancellable] or null

Returns

true if the connection succeeded, false on error

Throws

[ErrorWrap]