Struct protocol_ftp_client::FtpTransmitter [] [src]

pub struct FtpTransmitter { /* fields omitted */ }

"Active" side of FTP protocol, i.e. fill buffer with desired FTP commands for further delivery to remote server.

Methods

impl FtpTransmitter
[src]

Sometimes you need to manually advance to Receiver e.g. in case of LIST or file get commands, servers sends start data transfer and end data transfer responses.

Fills the output buffer with the login command (takes login string argument ), modifies count variable with the count of written bytes and returns FtpReceiver.

Fills the output buffer with the password command (takes password string argument ), modifies count variable with the count of written bytes and returns FtpReceiver.

Fills the output buffer with the PWD command (take current working directory on remote server), modifies count variable with the count of written bytes and returns FtpReceiver.

Returns current working directory. Assumes either that send_pwd_req or send_cwd_req has been sent and succeeded.

Fills the output buffer with the data transfer mode request (binary or text), modifies count variable with the count of written bytes and returns FtpReceiver.

Returns current data mode. Assumes either that send_type_req has been sent and succeeded.

Fills the output buffer with the remote system request; modifies count variable with the count of written bytes and returns FtpReceiver.

Returns remote system with subtype. Assumes either that send_system_req has been sent and succeeded.

Fills the output buffer with the PASS requests to allow further data transfer (LIST or get file) modifies count variable with the count of written bytes and returns FtpReceiver.

Fills the output buffer with get remove file command (takes path string argument ), modifies count variable with the count of written bytes and returns FtpReceiver.

Fills the output buffer with change remote working directory command (takes path string argument ), modifies count variable with the count of written bytes and returns FtpReceiver.

Takes pair of IP-address and port, where TCP-connection can be opened to. Assumes send_pasv_req has been invoked before.

Fills the output buffer with LIST command to get directory listing of current remote working directory; modifies count variable with the count of written bytes and returns FtpReceiver.

Parses remote directory listing, requested by send_list_req command.