rust-ftp icon indicating copy to clipboard operation
rust-ftp copied to clipboard

Allow the stream to be anything that implements Read and Write

Open mattnenterprise opened this issue 8 years ago • 3 comments

mattnenterprise avatar Jan 14 '16 21:01 mattnenterprise

What is the problem of the current implementation using a TcpStream explicitly?

matt2xu avatar Feb 28 '16 15:02 matt2xu

Nothing is wrong with the current implementation. Another issue was opened in another project of mine that asked for this kind of functionality. https://github.com/mattnenterprise/rust-imap/issues/3 I don't think it should be done for this project unless someone requests it. I think the current implementation is just fine.

mattnenterprise avatar Mar 01 '16 04:03 mattnenterprise

Ok I see. I think it would be more difficult than for IMAP though, because of FTP's passive mode. I'd say another solution might be to support SOCKS proxying instead with the "socks" crate. Anyway, I agree with you, we can wait until somebody needs this.

matt2xu avatar Mar 01 '16 10:03 matt2xu