So QFtp
was removed because it had bad design they say. Whatever.
However, for new applications, it is recommended to use QNetworkAccessManager and QNetworkReply, as those classes possess a simpler, yet more powerful API. (from docs)
I looked up QNetworkAccessManager
and it's just confusing. It's not socket and doesn't even seem to provide raw socket methods. But it's also not FTP. It provides HTTP related functions like cookieJar
, post
, get
... Can someone remind me how does FTP respond to HTTP data?
So this question consists of two parts:
- What are we basically expected to do to do a simple connection to FTP server and one basic operation, like dir listing.
- How does it work on low-level, and why.
I have of course found some code and I'm now trying to get it to work, but the real problem is that it makes no sense to me.