Gio.ProxyAddress.new

function new(inetaddr: Gio.InetAddress, port: Number(guint16), protocol: String, dest_hostname: String, dest_port: Number(guint16), username: String, password: String): Gio.SocketAddress {
    // Gjs wrapper for g_proxy_address_new()
}
  

Creates a new Gio.ProxyAddress for inetaddr with protocol that should tunnel through dest_hostname and dest_port.

(Note that this method doesn't set the Gio.ProxyAddress.uri or Gio.ProxyAddress.destination_protocol fields; use GObject.Object.new directly if you want to set those.)

Since 2.26

inetaddr

The proxy server Gio.InetAddress.

port

The proxy server port.

protocol

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

dest_hostname

The destination hostname the proxy should tunnel to.

dest_port

The destination port to tunnel to.

username

The username to authenticate to the proxy server (or null).

password

The password to authenticate to the proxy server (or null).

Returns

a new Gio.ProxyAddress