-
FTP :: Anyone?
Hello, I'm curious if anyone would know where I could find a good standard or template, to help me, implement my own aysnchronous ftp client (TCP).
I understand the concept of an asynchronous server/client, that sends pure text back and fourth, but I've never messed with the FTP side of things.
Can anyone please help? or show me in the right direction?
-
Re: FTP :: Anyone?
-
Re: FTP :: Anyone?
Danke, Andreas Masur, fur deine hilfe.
-
Re: FTP :: Anyone?
-
Re: FTP :: Anyone?
-
Re: FTP :: Anyone?
I think that the MFC classes CInternetSession, CFtpConnection & CFtpFileFind would help you a lot.
A little example:
Code:
CInternetSession sess;
CFtpConnection* pConnect = NULL;
try
{
pConnect = sess.GetFtpConnection(sFtpServer, sFtpUser, sFtpPassword);
}
catch (CInternetException* pEx)
{
return ;
}
CFtpFileFind finder(pConnect);
bFileFound = finder.FindFile("*.*");
if (bFileFound)
{
finder.FindNextFile();
sFileName = finder.GetFilePath();
BOOL bRes = pConnect->GetFile( sFileName, "MyFileName", FALSE);
}
if (pConnect != NULL)
{
pConnect->Close();
delete pConnect;
}