ProxyAddress

Support for proxied gio.InetSocketAddress

Constructors

this
this(GProxyAddress* gProxyAddress, bool ownedRef = false)

Sets our main struct and passes it to the parent class.

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

Creates a new gio.ProxyAddress 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"

getProxyAddressStruct
GProxyAddress* getProxyAddressStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getUri
string getUri()

Gets the proxy URI that proxy was constructed from.

getUsername
string getUsername()

Gets proxy's username.

Static functions

getType
GType getType()

Variables

gProxyAddress
GProxyAddress* gProxyAddress;

the main Gtk struct

Inherited Members

From InetSocketAddress

gInetSocketAddress
GInetSocketAddress* gInetSocketAddress;

the main Gtk struct

getInetSocketAddressStruct
GInetSocketAddress* getInetSocketAddressStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getAddress
InetAddress getAddress()

Gets address's gio.InetAddress

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.

Meta

Since

2.26