Class

GioProxyAddress

Description [src]

class Gio.ProxyAddress : Gio.InetSocketAddress {
  parent_instance: GInetSocketAddress
}

Support for proxied GInetSocketAddress.

Available since:2.26

Hierarchy

hierarchy this GProxyAddress implements_0 GSocketConnectable this--implements_0 ancestor_0 GInetSocketAddress ancestor_0--this ancestor_1 GSocketAddress ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1

Implements

Constructors

g_proxy_address_new

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

Available since: 2.26

Instance methods

g_proxy_address_get_destination_hostname

Gets proxys destination hostname; that is, the name of the host that will be connected to via the proxy, not the name of the proxy itself.

Available since: 2.26

g_proxy_address_get_destination_port

Gets proxys 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.

Available since: 2.26

g_proxy_address_get_destination_protocol

Gets the protocol that is being spoken to the destination server; eg, “http” or “ftp”.

Available since: 2.34

g_proxy_address_get_password

Gets proxys password.

Available since: 2.26

g_proxy_address_get_protocol

Gets proxys protocol. eg, “socks” or “http”

Available since: 2.26

g_proxy_address_get_uri

Gets the proxy URI that proxy was constructed from.

Available since: 2.34

g_proxy_address_get_username

Gets proxys username.

Available since: 2.26

Methods inherited from GInetSocketAddress (4)
g_inet_socket_address_get_address

Gets addresss GInetAddress.

Available since: 2.22

g_inet_socket_address_get_flowinfo

Gets the sin6_flowinfo field from address, which must be an IPv6 address.

Available since: 2.32

g_inet_socket_address_get_port

Gets addresss port.

Available since: 2.22

g_inet_socket_address_get_scope_id

Gets the sin6_scope_id field from address, which must be an IPv6 address.

Available since: 2.32

Methods inherited from GSocketAddress (3)
g_socket_address_get_family

Gets the socket family type of address.

Available since: 2.22

g_socket_address_get_native_size

Gets the size of addresss native struct sockaddr. You can use this to allocate memory to pass to g_socket_address_to_native().

Available since: 2.22

g_socket_address_to_native

Converts a GSocketAddress to a native struct sockaddr, which can be passed to low-level functions like connect() or bind().

Available since: 2.22

Methods inherited from GObject (43)
Methods inherited from GSocketConnectable (3)
g_socket_connectable_enumerate

Creates a GSocketAddressEnumerator for connectable.

Available since: 2.22

g_socket_connectable_proxy_enumerate

Creates a GSocketAddressEnumerator for connectable that will return a GProxyAddress for each of its addresses that you must connect to via a proxy.

Available since: 2.26

g_socket_connectable_to_string

Format a GSocketConnectable as a string. This is a human-readable format for use in debugging output, and is not a stable serialization format. It is not suitable for use in user interfaces as it exposes too much information for a user.

Available since: 2.48

Properties

Gio.ProxyAddress:destination-hostname
No description available.
Gio.ProxyAddress:destination-port
No description available.
Gio.ProxyAddress:destination-protocol

The protocol being spoke to the destination host, or NULL if the GProxyAddress doesn’t know.

Available since: 2.34

Gio.ProxyAddress:password
No description available.
Gio.ProxyAddress:protocol
No description available.
Gio.ProxyAddress:uri

The URI string that the proxy was constructed from (or NULL if the creator didn’t specify this).

Available since: 2.34

Gio.ProxyAddress:username
No description available.
Properties inherited from GInetSocketAddress (4)
Gio.InetSocketAddress:address
No description available.
Gio.InetSocketAddress:flowinfo

The sin6_flowinfo field, for IPv6 addresses.

Available since: 2.32

Gio.InetSocketAddress:port
No description available.
Gio.InetSocketAddress:scope-id
No description available.
Properties inherited from GSocketAddress (1)
Gio.SocketAddress:family
No description available.

Signals

Signals inherited from GObject (1)

Class structure

struct GioProxyAddressClass {
  GInetSocketAddressClass parent_class;
  
}
Class members
parent_class
GInetSocketAddressClass
  No description available.