connect

open fun connect(connection: IoStream, proxyAddress: ProxyAddress, cancellable: Cancellable? = null): <Error class: unknown class><IoStream>

Given @connection to communicate with a proxy (eg, a #GSocketConnection that is connected to the proxy server), this does the necessary handshake to connect to @proxy_address, and if required, wraps the #GIOStream to handle proxy payload.

Return

a #GIOStream that will replace @connection. This might be the same as @connection, in which case a reference will be added.

Since

2.26

Parameters

connection

a #GIOStream

proxyAddress

a #GProxyAddress

cancellable

a #GCancellable