proxy(n) 0.2 "proxy socket connections"
proxy - proxy socket connections
package require proxy 0.2
The proxy package provides unified interface for using proxies of
different types.
- -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.
- 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.
Proxy package and this man page was written by Ihar Viarheichyk <iverg@mail.ru>
proxy, socket