ProxyAddress

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

Constructors

this
this(void* ptr, Flag!"Take" take)
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.

self
ProxyAddress self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]
destinationHostname
string destinationHostname [@property getter]

Get destinationHostname property.

destinationPort
uint destinationPort [@property getter]

Get destinationPort property.

destinationProtocol
string destinationProtocol [@property getter]

Get destinationProtocol property.

password
string password [@property getter]

Get password property.

protocol
string protocol [@property getter]

Get protocol property.

uri
string uri [@property getter]

Get uri property.

username
string username [@property getter]

Get username property.

Static functions

_getGType
GType _getGType()
builder
ProxyAddressGidBuilder builder()

Get builder for gio.proxy_address.ProxyAddress

Inherited Members

From InetSocketAddress

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
InetSocketAddress self()

Returns this, for use in with statements.

builder
InetSocketAddressGidBuilder builder()

Get builder for gio.inet_socket_address.InetSocketAddress

address
gio.inet_address.InetAddress address [@property getter]

Get address property.

flowinfo
uint flowinfo [@property getter]

Get flowinfo property.

port
uint port [@property getter]

Get port property.

scopeId
uint scopeId [@property getter]

Get scopeId property.

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.