connect


Description:

public abstract IOStream connect (IOStream connection, ProxyAddress proxy_address, Cancellable? cancellable = null) throws Error

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

Parameters:

this

a Proxy

connection

a IOStream

proxy_address

a ProxyAddress

cancellable

a Cancellable

Returns:

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




2022 vala-language.org