Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: object
A [class@Gio.InetSocketAddress] representing a connection via a proxy server.
GProxyAddress (inetaddr = null, port = null, protocol = null, dest_hostname = null, dest_port = null, username = null, password = null)
Creates a new #GProxyAddress for @inetaddr with @protocol that should tunnel through @dest_hostname and @dest_port. (Note that this method doesn't set the #GProxyAddress:uri or #GProxyAddress:destination-protocol fields; use g_object_new() directly if you want to set those.)
inetaddr is The proxy server #GInetAddress..port is The proxy server port..protocol is The proxy protocol to support, in lower case (e.g. socks, http)..dest_hostname is The destination hostname the proxy should tunnel to..dest_port is The destination port to tunnel to..username is The username to authenticate to the proxy server (or %NULL)..password is The password to authenticate to the proxy server (or %NULL)..toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asInetSocketAddress ()
Wraps this handle as
GInetSocketAddress.
A GInetSocketAddress object.asSocketConnectable ()
Wraps this handle as
GSocketConnectable.
A GSocketConnectable object.get_destination_hostname ()
Gets @proxy'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.
the @proxy's destination hostname.get_destination_port ()
Gets @proxy'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.
the @proxy's destination port.get_destination_protocol ()
Gets the protocol that is being spoken to the destination server; eg, "http" or "ftp".
the @proxy's destination protocol.get_password ()
Gets @proxy's password.
the @proxy's password.get_protocol ()
Gets @proxy's protocol. eg, "socks" or "http"
the @proxy's protocol.get_uri ()
Gets the proxy URI that @proxy was constructed from.
the @proxy's URI, or %NULL if unknown.get_username ()
Gets @proxy's username.
the @proxy's username.[205:14] static extends: object
Generated metadata helpers for ProxyAddress class surfaces.
properties ()
Returns property metadata for
ProxyAddress.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.