ProxyT.connect

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.

Parameters

connection gio.iostream.IOStream

a #GIOStream

proxyAddress gio.proxy_address.ProxyAddress

a #GProxyAddress

cancellable gio.cancellable.Cancellable

a #GCancellable

Return Value

Type: gio.iostream.IOStream

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