Virtual Method

GioProxyconnect

Declaration

GIOStream*
connect (
  GProxy* proxy,
  GIOStream* connection,
  GProxyAddress* proxy_address,
  GCancellable* cancellable,
  GError** error
)

Description

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.

Available since:2.26

Parameters

connection GIOStream
 

A GIOStream.

 The data is owned by the caller of the function.
proxy_address GProxyAddress
 

A GProxyAddress.

 The data is owned by the caller of the function.
cancellable GCancellable
 

A GCancellable.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GIOStream
 

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

 The caller of the function takes ownership of the data, and is responsible for freeing it.