Gio.ProxyAddress¶
| Subclasses: | None |
|---|
Methods¶
| Inherited: | Gio.InetSocketAddress (6), Gio.SocketAddress (4), GObject.Object (37), Gio.SocketConnectable (3) |
|---|---|
| Structs: | GObject.ObjectClass (5) |
| class | new (inetaddr, port, protocol, dest_hostname, dest_port, username, password) |
get_destination_hostname () |
|
get_destination_port () |
|
get_destination_protocol () |
|
get_password () |
|
get_protocol () |
|
get_uri () |
|
get_username () |
Virtual Methods¶
| Inherited: | Gio.SocketAddress (3), GObject.Object (7), Gio.SocketConnectable (3) |
|---|
Properties¶
| Inherited: | Gio.InetSocketAddress (4), Gio.SocketAddress (1) |
|---|
| Name | Type | Flags | Short Description |
|---|---|---|---|
destination-hostname |
str |
r/w/co | The proxy destination hostname |
destination-port |
int |
r/w/co | The proxy destination port |
destination-protocol |
str |
r/w/co | The proxy destination protocol |
password |
str |
r/w/co | The proxy password |
protocol |
str |
r/w/co | The proxy protocol |
uri |
str |
r/w/co | The proxy’s URI |
username |
str |
r/w/co | The proxy username |
Signals¶
| Inherited: | GObject.Object (1) |
|---|
Fields¶
| Inherited: | GObject.Object (1) |
|---|
| Name | Type | Access | Description |
|---|---|---|---|
| parent_instance | Gio.InetSocketAddress |
r |
Class Details¶
-
class
Gio.ProxyAddress(**kwargs)¶ Bases: Gio.InetSocketAddressAbstract: No Structure: Gio.ProxyAddressClassSupport for proxied
Gio.InetSocketAddress.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 (
strorNone) – The username to authenticate to the proxy server (orNone). - password (
strorNone) – The password to authenticate to the proxy server (orNone).
Returns: a new
Gio.ProxyAddressReturn type: Creates a new
Gio.ProxyAddressfor inetaddr with protocol that should tunnel through dest_hostname and dest_port.(Note that this method doesn’t set the
Gio.ProxyAddress:uriorGio.ProxyAddress:destination-protocolfields; use g_object_new() directly if you want to set those.)New in version 2.26.
- inetaddr (
-
get_destination_hostname()[source]¶ Returns: the self’s destination hostname Return type: strGets 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: intGets 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: strGets the protocol that is being spoken to the destination server; eg, “http” or “ftp”.
New in version 2.34.
-
get_password()[source]¶ Returns: the self’s password Return type: strGets self’s password.
New in version 2.26.
-
get_protocol()[source]¶ Returns: the self’s protocol Return type: strGets self’s protocol. eg, “socks” or “http”
New in version 2.26.
-
classmethod
Property Details¶
-
Gio.ProxyAddress.props.destination_hostname¶ Name: destination-hostnameType: strDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe proxy destination hostname
-
Gio.ProxyAddress.props.destination_port¶ Name: destination-portType: intDefault Value: 0Flags: READABLE,WRITABLE,CONSTRUCT_ONLYThe proxy destination port
-
Gio.ProxyAddress.props.destination_protocol¶ Name: destination-protocolType: strDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe protocol being spoke to the destination host, or
Noneif theGio.ProxyAddressdoesn’t know.New in version 2.34.
-
Gio.ProxyAddress.props.password¶ Name: passwordType: strDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe proxy password
-
Gio.ProxyAddress.props.protocol¶ Name: protocolType: strDefault Value: NoneFlags: READABLE,WRITABLE,CONSTRUCT_ONLYThe proxy protocol