ProxyAddress

A gio.inet_socket_address.InetSocketAddress representing a connection via a proxy server.

Constructors

this
this(gio.inet_address.InetAddress inetaddr, ushort port, string protocol, string destHostname, ushort destPort, string username, string password)

Creates a new #GProxyAddress for inetaddr with protocol that should tunnel through dest_hostname and dest_port.

Members

Functions

getDestinationHostname
string getDestinationHostname()

Gets proxy'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.

getDestinationPort
ushort getDestinationPort()

Gets proxy'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.

getDestinationProtocol
string getDestinationProtocol()

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

getPassword
string getPassword()

Gets proxy's password.

getProtocol
string getProtocol()

Gets proxy's protocol. eg, "socks" or "http"

getUri
string getUri()

Gets the proxy URI that proxy was constructed from.

getUsername
string getUsername()

Gets proxy's username.

Inherited Members

From InetSocketAddress

newFromString
gio.inet_socket_address.InetSocketAddress newFromString(string address, uint port)

Creates a new #GInetSocketAddress for address and port.

getAddress
gio.inet_address.InetAddress getAddress()

Gets address's #GInetAddress.

getFlowinfo
uint getFlowinfo()

Gets the sin6_flowinfo field from address, which must be an IPv6 address.

getPort
ushort getPort()

Gets address's port.

getScopeId
uint getScopeId()

Gets the sin6_scope_id field from address, which must be an IPv6 address.