Class: Gio::ProxyAddress

Inherits:
InetSocketAddress show all
Defined in:
(unknown)

Overview

Class structure for GProxy::Address.

Instance Method Summary collapse

Methods inherited from InetSocketAddress

#address, #address=, #flowinfo, #flowinfo=, #port, #port=, #scope_id, #scope_id=

Methods inherited from SocketAddress

#family, #family=, #native_size, #to_native

Constructor Details

#initialize(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).

Instance Method Details

#destination_hostnameString

The proxy destination hostname.

Returns:

  • (String)

    destination-hostname

#destination_hostname=(destination_hostname) ⇒ String

The proxy destination hostname.

Parameters:

  • destination_hostname (String)

Returns:

  • (String)

    destination-hostname

  • (String)

    destination-hostname

#destination_portInteger

The proxy destination port.

Returns:

  • (Integer)

    destination-port

#destination_port=(destination_port) ⇒ Integer

The proxy destination port.

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

#passwordString

The proxy password.

Returns:

  • (String)

    password

#password=(password) ⇒ String

The proxy password.

Parameters:

  • password (String)

Returns:

  • (String)

    password

  • (String)

    password

#protocolString

The proxy protocol.

Returns:

  • (String)

    protocol

#protocol=(protocol) ⇒ String

The proxy protocol.

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

The proxy username.

Returns:

  • (String)

    username

#username=(username) ⇒ String

The proxy username.

Parameters:

  • username (String)

Returns:

  • (String)

    username

  • (String)

    username