Session.connectAsync

Start a connection to @uri. The operation can be monitored by providing a @progress_callback and finishes when the connection is done or an error ocurred.

Call soup_session_connect_finish() to get the #GIOStream to communicate with the server.

class Session
void
connectAsync

Parameters

uri URI

a #SoupURI to connect to

cancellable Cancellable

a #GCancellable

progressCallback SoupSessionConnectProgressCallback

a #SoupSessionConnectProgressCallback which will be called for every network event that occurs during the connection.

callback GAsyncReadyCallback

the callback to invoke when the operation finishes

userData void*

data for @progress_callback and @callback

Meta

Since

2.62