Socket.connectSync

Attempt to synchronously connect @sock to its remote address.

If @cancellable is non-%NULL, it can be used to cancel the connection, in which case soup_socket_connect_sync() will return %SOUP_STATUS_CANCELLED.

class Socket
uint
connectSync
(
Cancellable cancellable
)

Parameters

cancellable Cancellable

a #GCancellable, or %NULL

Return Value

Type: uint

a success or failure code.

Meta