Socket.connectAsync

Begins asynchronously connecting to @sock's remote address. The socket will call @callback when it succeeds or fails (but not before returning from this function).

If @cancellable is non-%NULL, it can be used to cancel the connection. @callback will still be invoked in this case, with a status of %SOUP_STATUS_CANCELLED.

class Socket
void
connectAsync

Parameters

cancellable Cancellable

a #GCancellable, or %NULL

callback SoupSocketCallback

callback to call after connecting

userData void*

data to pass to @callback

Meta