{
The QStringList CMDS;
If (type==Binary)
CMDS & lt;
CMDS & lt;
{
CMDS & lt;
CMDS & lt;
Breakpoint continuingly use this can download, upload, how to access the server file size
CodePudding user response:
May formulate a communication protocol, and the server protocol includes message type, data length, the necessary length of the data returned to the client by the serverCodePudding user response:
QFtp implementation is not very good, if you have any good method, which post is awesome, breakpoint uploader, if use libcurl, better still,It has a dongdong, see don't know how to use,
http://www.xuebuyuan.com/1445922.html
CodePudding user response:
In fact don't recommend to use QFtp, because there are so many bugs that transfer files Qt QNetworkAccessManager, QNetworkRequest and QNetworkReply combinationCodePudding user response:
FTP commands for REST was to tell the server from the download file where to start, but haven't specified file, and then you need to send RETR + filename command to the server, notify the server to download the file name, the server then began to locate and send the file pointer dataBreakpoint uploader if need to access the file on the server and the local files with the same size, then send APPE + filename command to the server, that data to add to this the end of the file; Because access to the remote file size, can from the local file pointer position, it is ok to send data from the position