Gio.ProxyAddress¶
- Subclasses:
None
Methods¶
- Inherited:
Gio.InetSocketAddress (6), Gio.SocketAddress (4), GObject.Object (37), Gio.SocketConnectable (3)
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
|||
r/w/co |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Gio.ProxyAddress(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A [class`Gio`.InetSocketAddress] representing a connection via a proxy server.
New in version 2.26.
- classmethod new(inetaddr, port, protocol, dest_hostname, dest_port, username, password)[source]¶
- Parameters:
inetaddr (
Gio.InetAddress
) – The proxy serverGio.InetAddress
.port (
int
) – The proxy server port.protocol (
str
) – The proxy protocol to support, in lower case (e.g. socks, http).dest_hostname (
str
) – The destination hostname the proxy should tunnel to.dest_port (
int
) – The destination port to tunnel to.username (
str
orNone
) – The username to authenticate to the proxy server (orNone
).password (
str
orNone
) – The password to authenticate to the proxy server (orNone
).
- Returns:
a new
Gio.ProxyAddress
- Return type:
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
orGio.ProxyAddress
:destination-protocol
fields; use g_object_new() directly if you want to set those.)New in version 2.26.
- get_destination_hostname()[source]¶
- Returns:
the self's destination hostname
- Return type:
Gets self'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.
New in version 2.26.
- get_destination_port()[source]¶
- Returns:
the self's destination port
- Return type:
Gets self'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.
New in version 2.26.
- get_destination_protocol()[source]¶
- Returns:
the self's destination protocol
- Return type:
Gets the protocol that is being spoken to the destination server; eg, “http” or “ftp”.
New in version 2.34.
- get_protocol()[source]¶
- Returns:
the self's protocol
- Return type:
Gets self's protocol. eg, “socks” or “http”
New in version 2.26.
Property Details¶
- Gio.ProxyAddress.props.destination_hostname¶
- Name:
destination-hostname
- Type:
- Default Value:
- Flags:
The proxy destination hostname.
New in version 2.26.
- Gio.ProxyAddress.props.destination_port¶
- Name:
destination-port
- Type:
- Default Value:
0
- Flags:
The proxy destination port.
New in version 2.26.
- Gio.ProxyAddress.props.destination_protocol¶
- Name:
destination-protocol
- Type:
- Default Value:
- Flags:
The protocol being spoke to the destination host, or
None
if theGio.ProxyAddress
doesn’t know.New in version 2.34.
- Gio.ProxyAddress.props.password¶
- Name:
password
- Type:
- Default Value:
- Flags:
The proxy password.
New in version 2.26.
- Gio.ProxyAddress.props.protocol¶
- Name:
protocol
- Type:
- Default Value:
- Flags:
The proxy protocol.
New in version 2.26.