class ftp_client_pi :The client protocol interpreter...?event_system:Unixqueue.event_system -> ?onempty:ftp_state -> unit -> ?onclose:unit -> unit -> ?onerrorstate:exn -> unit -> ?onusererror:exn -> unit -> Unix.file_descr ->object..end
has a queue of commands that are sent to the server in turn.
onempty is called when the last command of the queue has been processed.
onclose is called when the control connection is closed by the
FTP server (e.g. as reaction of the QUIT command).
onerrorstate is called when an `Error state is reached (serious
error condition).
onusererror is called when callbacks (i.e. onreply) raise exceptions.
method add_cmd : ?onreply:(ftp_state -> reply -> unit) ->
cmd -> unitonreply is called.
Due to the FTP specification there may be several replies for
a command: First, zero or more replies with cmd_state = `Preliminary,
and then exactly one reply with a final state.method send_abort : unit -> unitABOR command, even when a data transfer is
in progress.
TODO - not yet implemented
method run : unit -> unitUnixqueue.runmethod ftp_state : ftp_statemethod state : unit Uq_engines.engine_stateUq_engines. Possible values are:`Working _: The control connection is still active. The int
argument is currently meaningless.`Done(): The control connection has been terminated.`Error e: A violation of the FTP protocol happened, or another
exception e occurred`Aborted: The abort method was calledmethod abort : unit -> unit`Aborted.method event_system : Unixqueue.event_systemmethod is_empty : bool