Struct protocol_ftp_client::FtpTransmitter [] [src]

pub struct FtpTransmitter {
    // some 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 manually advance to Reciever e.g. in case of LIST or file get commands, servers sends start data transfer and end data transfer responces

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

Fills the output buffer with the password command (takes password string argument ), modifies count variable with the count of written bytes and return 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 return FtpReceiver

Returns current working directory. Assumes either that send_pwd_req or send_cwd_req has been send 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 return FtpReceiver

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

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

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

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

Fills the output buffer with get remove file command (takes path string argument ), modifies count variable with the count of written bytes and return 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 return FtpReceiver

Takes IP-address and port pair, 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 return FtpReceiver

Parses remote directory listing, requested by send_list_req command