| GIO Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
GProxyAddress;
GProxyAddressClass;
const gchar * g_proxy_address_get_destination_hostname
(GProxyAddress *proxy);
guint16 g_proxy_address_get_destination_port
(GProxyAddress *proxy);
const gchar * g_proxy_address_get_password (GProxyAddress *proxy);
const gchar * g_proxy_address_get_protocol (GProxyAddress *proxy);
const gchar * g_proxy_address_get_username (GProxyAddress *proxy);
GSocketAddress * g_proxy_address_new (GInetAddress *inetaddr,
guint16 port,
const gchar *protocol,
const gchar *dest_hostname,
guint16 dest_port,
const gchar *username,
const gchar *password);
typedef struct {
GInetSocketAddress parent_instance;
} GProxyAddress;
A GInetSocketAddress representing a connection via a proxy server
Since 2.26
const gchar * g_proxy_address_get_destination_hostname
(GProxyAddress *proxy);
Gets proxy's destination hostname.
|
a GProxyAddress |
Returns : |
the proxy's destination hostname
|
Since 2.26
guint16 g_proxy_address_get_destination_port
(GProxyAddress *proxy);
Gets proxy's destination port.
|
a GProxyAddress |
Returns : |
the proxy's destination port
|
Since 2.26
const gchar * g_proxy_address_get_password (GProxyAddress *proxy);
Gets proxy's password.
|
a GProxyAddress |
Returns : |
the proxy's password
|
Since 2.26
const gchar * g_proxy_address_get_protocol (GProxyAddress *proxy);
Gets proxy's protocol.
|
a GProxyAddress |
Returns : |
the proxy's protocol
|
Since 2.26
const gchar * g_proxy_address_get_username (GProxyAddress *proxy);
Gets proxy's username.
|
a GProxyAddress |
Returns : |
the proxy's username
|
Since 2.26
GSocketAddress * g_proxy_address_new (GInetAddress *inetaddr, guint16 port, const gchar *protocol, const gchar *dest_hostname, guint16 dest_port, const gchar *username, const gchar *password);
Creates a new GProxyAddress for inetaddr with protocol that should
tunnel through dest_hostname and dest_port.
|
The proxy server GInetAddress. |
|
The proxy server port. |
|
The proxy protocol to support, in lower case (e.g. socks, http). |
|
The destination hostname the the proxy should tunnel to. |
|
The destination port to tunnel to. |
|
allow-none. allow-none. |
|
allow-none. allow-none. |
Returns : |
a new GProxyAddress |
Since 2.26