Gio.Proxy::connect

function vfunc_connect(connection: Gio.IOStream, proxy_address: Gio.ProxyAddress, cancellable: Gio.Cancellable): Gio.IOStream {
}
  

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

Since 2.26

connection

a Gio.IOStream

proxy_address

a Gio.ProxyAddress

cancellable

a Gio.Cancellable

Returns

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