proxy(n) 0.2 "proxy socket connections"

NAME

proxy - proxy socket connections

SYNOPSIS

package require proxy 0.2

proxy::types
proxy::enum
proxy::proxy name ?options?
proxy::connect name server port script_ok script_error ?script_log?
proxy::delete name

DESCRIPTION

The proxy package provides unified interface for using proxies of different types.

OPTIONS

-type
Type of proxy, for example http.

-server
Proxy server name

-port
Proxy server port

-user
User name for authorization. If not given, authorization is not used.

-password
Password for authentication. If not specified, empty password is used.

COMMANDS

proxy::types
Returns list of proxy types supported at the moment.

proxy::enum
Returns list of active (created with proxy::proxy command) proxies.

proxy::proxy name ?options?
Creates or confirures existing proxy with given name as identifier.

proxy::connect name server port script_ok script_error ?script_log?
Attempts to perform connection to specified server and port via active proxy name. script_ok specifies script which will be invoked on sucsessfull connection. Additional argument - socket name will be added to the script when called with eval. script_error specifies script which will be invoked on proxy errors. This script should accept two additional agruments: error code and error description. error_log is optional script which is called to log proxy connection. This command does not return any meaningful value.

proxy::delete name
Deletes active proxy by name. Returns name of deleted proxy.

AUTHOR

Proxy package and this man page was written by Ihar Viarheichyk <iverg@mail.ru>

KEYWORDS

proxy, socket