Hi, I made ftp client program using WinINet API. The client first connects to the FTP server and downloads all of files in current directory.
The flow is like this. ------------------ InternetOpen(...) InternetConnect(...) FtpFindFirstFile(...) (loop) FtpGetFile(..) InternetFindNextFile(..) InternetCloseHandle(hFindFirstFile); InternetCloseHandle(hConnect); InternetCloseHandle(hOpen); ------------------
The situation is, there are 100 FTP servers and I want run my own ftp client which inside running 5 threads each implements above routine.
As a result, some thread fail to get files. My question is that FTP sessions(each connects another ftp server) couldn't run simultaneously
Visual C++10
|