1.66 <GProxyAddress>

Class: <GProxyAddress>

It derives from <GInetSocketAddress>.

A <GInetSocketAddress> representing a connection via a proxy server.

Fields

parent-instance

Properties

Property: proxy-address:destination-hostname self

The proxy destination hostname.

Its value is a string, or #f.

It can only be set when the object is made, with #:destination-hostname.

Property: proxy-address:destination-port self

The proxy destination port.

Its value is an unsigned 32-bit integer.

It can only be set when the object is made, with #:destination-port.

Property: proxy-address:destination-protocol self

The protocol being spoke to the destination host, or #f if the <GProxyAddress> doesn’t know.

Its value is a string, or #f.

It can only be set when the object is made, with #:destination-protocol.

Property: proxy-address:password self

The proxy password.

Its value is a string, or #f.

It can only be set when the object is made, with #:password.

Property: proxy-address:protocol self

The proxy protocol.

Its value is a string, or #f.

It can only be set when the object is made, with #:protocol.

Property: proxy-address:uri self

The URI string that the proxy was constructed from (or #f if the creator didn’t specify this).

Its value is a string, or #f.

It can only be set when the object is made, with #:uri.

Property: proxy-address:username self

The proxy username.

Its value is a string, or #f.

It can only be set when the object is made, with #:username.

Procedures

Method: proxy-address:get-destination-hostname self ⇒ %return
Method: get-destination-hostname self ⇒ %return

Gets self’s destination hostname; that is, the name of the host that will be connected to via the proxy, not the name of the proxy itself.

self

Passed: a <GProxyAddress>.

a <GProxyAddress>

%return

Returned: a string.

the self’s destination hostname

Method: proxy-address:get-destination-port self ⇒ %return
Method: get-destination-port self ⇒ %return

Gets self’s destination port; that is, the port on the destination host that will be connected to via the proxy, not the port number of the proxy itself.

self

Passed: a <GProxyAddress>.

a <GProxyAddress>

%return

Returned: an unsigned 16-bit integer.

the self’s destination port

Method: proxy-address:get-destination-protocol self ⇒ %return
Method: get-destination-protocol self ⇒ %return

Gets the protocol that is being spoken to the destination server; eg, "http" or "ftp".

self

Passed: a <GProxyAddress>.

a <GProxyAddress>

%return

Returned: a string.

the self’s destination protocol

Method: proxy-address:get-password self ⇒ %return
Method: get-password self ⇒ %return

Gets self’s password.

self

Passed: a <GProxyAddress>.

a <GProxyAddress>

%return

Returned: a string, or #f.

the self’s password

Method: proxy-address:get-protocol self ⇒ %return
Method: get-protocol self ⇒ %return

Gets self’s protocol. eg, "socks" or "http"

self

Passed: a <GProxyAddress>.

a <GProxyAddress>

%return

Returned: a string.

the self’s protocol

Method: proxy-address:get-uri self ⇒ %return
Method: get-uri self ⇒ %return

Gets the proxy URI that self was constructed from.

self

Passed: a <GProxyAddress>.

a <GProxyAddress>

%return

Returned: a string, or #f.

the self’s URI, or #f if unknown

Method: proxy-address:get-username self ⇒ %return
Method: get-username self ⇒ %return

Gets self’s username.

self

Passed: a <GProxyAddress>.

a <GProxyAddress>

%return

Returned: a string, or #f.

the self’s username

Procedure: proxy-address:new inetaddr port protocol dest-hostname dest-port [username] [password] ⇒ %return

Creates a new <GProxyAddress> for inetaddr with protocol that should tunnel through dest-hostname and dest-port.

(Note that this method doesn’t set the proxy-address:uri or proxy-address:destination-protocol fields; use g_object_new() directly if you want to set those.)

inetaddr

Passed: a <GInetAddress>.

The proxy server <GInetAddress>.

port

Passed: an unsigned 16-bit integer.

The proxy server port.

protocol

Passed: a string.

The proxy protocol to support, in lower case (e.g. socks, http).

dest-hostname

Passed: a string.

The destination hostname the proxy should tunnel to.

dest-port

Passed: an unsigned 16-bit integer.

The destination port to tunnel to.

username

Passed, or left out: a string, or #f.

The username to authenticate to the proxy server (or #f).

password

Passed, or left out: a string, or #f.

The password to authenticate to the proxy server (or #f).

%return

Returned: a <GSocketAddress>.

a new <GProxyAddress>