Class: Gio::ProxyAddress

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

Class structure for GProxy::Address.

Instance Method Summary collapse

Instance Method Details

#destination_hostnameString

Returns destination-hostname.

Returns:

  • (String)

    destination-hostname

#destination_hostname=(destination_hostname) ⇒ String

Parameters:

  • destination_hostname (String)

Returns:

  • (String)

    destination-hostname

  • (String)

    destination-hostname

#destination_portInteger

Returns destination-port.

Returns:

  • (Integer)

    destination-port

#destination_port=(destination_port) ⇒ Integer

Parameters:

  • destination_port (Integer)

Returns:

  • (Integer)

    destination-port

  • (Integer)

    destination-port

#destination_protocolString

The protocol being spoke to the destination host, or nil if the GProxy::Address doesn’t know.

Returns:

  • (String)

    destination-protocol

#destination_protocol=(destination_protocol) ⇒ String

The protocol being spoke to the destination host, or nil if the GProxy::Address doesn’t know.

Parameters:

  • destination_protocol (String)

Returns:

  • (String)

    destination-protocol

  • (String)

    destination-protocol

#new(inetaddr, port, protocol, dest_hostname, dest_port, username, password) ⇒ Gio::SocketAddress

Creates a new GProxy::Address for inetaddr with protocol that should tunnel through dest_hostname and dest_port.

(Note that this method doesn’t set the GProxy::Address:uri or GProxy::Address:destination-protocol fields; use g_object_new() directly if you want to set those.)

Parameters:

  • inetaddr (Gio::InetAddress)

    The proxy server GInet::Address.

  • port (Integer)

    The proxy server port.

  • protocol (String)

    The proxy protocol to support, in lower case (e.g. socks, http).

  • dest_hostname (String)

    The destination hostname the proxy should tunnel to.

  • dest_port (Integer)

    The destination port to tunnel to.

  • username (String)

    The username to authenticate to the proxy server (or nil).

  • password (String)

    The password to authenticate to the proxy server (or nil).

Returns:

#passwordString

Returns password.

Returns:

  • (String)

    password

#password=(password) ⇒ String

Parameters:

  • password (String)

Returns:

  • (String)

    password

  • (String)

    password

#protocolString

Returns protocol.

Returns:

  • (String)

    protocol

#protocol=(protocol) ⇒ String

Parameters:

  • protocol (String)

Returns:

  • (String)

    protocol

  • (String)

    protocol

#uriString

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

Returns:

  • (String)

    uri

#uri=(uri) ⇒ String

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

Parameters:

  • uri (String)

Returns:

  • (String)

    uri

  • (String)

    uri

#usernameString

Returns username.

Returns:

  • (String)

    username

#username=(username) ⇒ String

Parameters:

  • username (String)

Returns:

  • (String)

    username

  • (String)

    username