Class Ftp_client.ftp_client_pi


class ftp_client_pi : ?event_system:Unixqueue.event_system -> ?onempty:state -> unit -> ?onclose:unit -> unit -> Unix.file_descr -> object .. end
The client protocol interpreter...

has a queue of commands that are sent to the server in turn.


method add_cmd : ?onreply:(state -> reply -> unit) ->
cmd -> unit
Add another command to the queue. The protocol interpreter does not check whether this command is allowed in the current state or not. For every reply of the server onreply 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 -> unit
Sends immediately an ABOR command, even when a data transfer is in progress.

TODO - not yet implemented

method run : unit -> unit
Starts the event system; same as Unixqueue.run
method state : state
Returns the current state