Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Quote:
Hi everyone I am trying to download a file from Ftp server every 30 min or 20 min. In order to do this i am making connection and disconnecting every 30 minutes but when I try to download a file from multiple sites at same time it gives me error because while multiple sites try to disconnect please help me what should I do. I making program in C++ with QT library and my source code is very huge therefore I have putted disconnect part
Quote:
and how can I make disconnect as soon as I make connect to Ftp server

C++
void FtpClientThread::stopDownloading()
     {
      _timer.stop();

      _pFtp->close();
      _pFtp->deleteLater();
      _pFtp = 0;
    }</blockquote>
Posted
Updated 11-Aug-15 17:37pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900