Home > Software engineering >  MFC own FTP class CFtpConnection, upload download how to obtain upload download rate and time
MFC own FTP class CFtpConnection, upload download how to obtain upload download rate and time

Time:01-22

MFC own FTP class CFtpConnection, upload download how to obtain upload download rate and time

CodePudding user response:

CFtpConnection: : Command issued a ls - al to view the file size
1, CFtpConnection: : OpenFile open FTP server files;
2, ReadFile read a piece of data;
3, the update progress on interface

CodePudding user response:

reference 1st floor Chen Zhongfu response:
CFtpConnection: : Command issued a ls - al to view the file size
1, CFtpConnection: : OpenFile open FTP server files;
2, ReadFile read a piece of data;
3, the update progress on interface

Upload completed this PutFile upload it, it will be returned, a timer, timer to read on the FTP upload file size?

CodePudding user response:

reference 1st floor Chen Zhongfu response:
CFtpConnection: : Command issued a ls - al to view the file size
1, CFtpConnection: : OpenFile open FTP server files;
2, ReadFile read a piece of data;
3, the update progress on interface

The size of the command to send instructions, get, can't seem to return back,

CodePudding user response:

Such instructions are included in the MSDN documentation of CFtpConnection
GetFile is a high - level routine that handles all of the overhead associated with reading a file from an FTP server and storing it locally. The Applications that only retrieve the file data, or that require close control over the file transfer, should use the OpenFile and CInternetFile: : Read home.


CodePudding user response:

reference 5 floor zgl7903 reply:
CFtpConnection such instructions are included in the MSDN documentation of
GetFile is a high - level routine that handles all of the overhead associated with reading a file from an FTP server and storing it locally. The Applications that only retrieve the file data, or that require close control over the file transfer, should use the OpenFile and CInternetFile: : Read home.

See this passage, mean need to upload download operation, should be used to open the file, in writing or reading the file
  • Related