Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: ProxyAddress

[12:7] extends: object

A [class@Gio.InetSocketAddress] representing a connection via a proxy server.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • ProxyAddress (Handle = null)

    Creates a new ProxyAddress by wrapping a native handle or another wrapper.

    • @p Handle is the native handle or another wrapper whose handle to adopt.
  • 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asInetSocketAddress ()

    Wraps this handle as InetSocketAddress.

    • @r A InetSocketAddress object.
  • asSocketConnectable ()

    Wraps this handle as SocketConnectable.

    • @r A SocketConnectable 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.

  • get_destination_protocol ()

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

  • get_password ()

    Gets @proxy's password.

  • get_protocol ()

    Gets @proxy's protocol. eg, "socks" or "http"

  • get_uri ()

    Gets the proxy URI that @proxy was constructed from.

  • get_username ()

    Gets @proxy's username.

class: ProxyAddressMeta

[161:14] static extends: object

Generated metadata helpers for ProxyAddress class surfaces.

Methods

  • properties ()

    Returns property metadata for ProxyAddress.

    • @r A list.