SocketConnection.connect

Connect connection to the specified remote address. Since 2.32

class SocketConnection
int
connect

Parameters

address SocketAddress

a GSocketAddress specifying the remote address.

cancellable Cancellable

a GCancellable or NULL. [allow-none]

Return Value

Type: int

TRUE if the connection succeeded, FALSE on error

Throws

GException on failure.

Meta