ProxyAddress.this

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 #GProxyAddress:uri or #GProxyAddress:destination-protocol fields; use g_object_new() directly if you want to set those.)

  1. this(GProxyAddress* gProxyAddress, bool ownedRef)
  2. this(InetAddress inetaddr, ushort port, string protocol, string destHostname, ushort destPort, string username, string password)
    class ProxyAddress
    this
    (,
    ushort port
    ,
    string protocol
    ,,
    ushort destPort
    ,
    string username
    ,
    string password
    )

Parameters

inetaddr InetAddress

The proxy server #GInetAddress.

port ushort

The proxy server port.

protocol string

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

destHostname string

The destination hostname the proxy should tunnel to.

destPort ushort

The destination port to tunnel to.

username string

The username to authenticate to the proxy server (or %NULL).

password string

The password to authenticate to the proxy server (or %NULL).

Return Value

a new #GProxyAddress

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.26