ProxyAddress
Description:
[ CCode ( has_construct_function = false , type = "GSocketAddress*" ) ]
public ProxyAddress (InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string? username, string? password)
public ProxyAddress (InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string? username, string? password)
Creates a new ProxyAddress for inetaddr
with protocol
that should tunnel through dest_hostname
and dest_port
.
(Note that this method doesn't set the uri or destination_protocol fields; use @new directly if you want to set those.)
Parameters:
inetaddr |
The proxy server 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 ProxyAddress |