Proxy

Proxy(p_addr = :ENV, p_port = nil, p_user = nil, p_pass = nil) Class Public methods Creates an HTTP proxy class which behaves like Net::HTTP, but performs all access via the specified proxy. This class is obsolete. You may pass these same parameters directly to ::new. See ::new for details of the arguments.

voidcmd

voidcmd(cmd) Instance Public methods Sends a command and expect a response beginning with '2'.

system

system() Instance Public methods Returns system information.

storlines

storlines(cmd, file) Instance Public methods Puts the connection into ASCII (text) mode, issues the given server-side command (such as âSTOR myfileâ), and sends the contents of the file named file to the server, one line at a time. If the optional block is given, it also passes it the lines.

storbinary

storbinary(cmd, file, blocksize, rest_offset = nil) Instance Public methods Puts the connection into binary (image) mode, issues the given server-side command (such as âSTOR myfileâ), and sends the contents of the file named file to the server. If the optional block is given, it also passes it the data, in chunks of blocksize characters.

status

status() Instance Public methods Returns the status (STAT command).

size

size(filename) Instance Public methods Returns the size of the given (remote) filename.

site

site(arg) Instance Public methods Issues a SITE command.

set_socket

set_socket(sock, get_greeting = true) Instance Public methods WRITEME or make private

sendcmd

sendcmd(cmd) Instance Public methods Sends a command and returns the response.