Quantcast
Channel: FileZilla Forums
Viewing all articles
Browse latest Browse all 11475

Re: Help: Get transfer status

$
0
0
Thanks for your response!

Here are my thoughts:

Code:
int CFileZillaEnginePrivate::FileTransfer(const CFileTransferCommand &command)
{
  ... ...
  // do something before a file will be transfered.
  ... ...
}

void CControlSocket::LogTransferResultMessage(int nErrorCode, CFileTransferOpData *pData)
{
   if (m_pTransferStatus && (nErrorCode == FZ_REPLY_OK || m_pTransferStatus->madeProgress))
   {
      ... ...

      if (nErrorCode == FZ_REPLY_OK)
      {
         ... ...
         // nErrorCode == FZ_REPLY_OK and pData->transferInitiated tell us File transfer successful, not skip
         if(m_pCurrentServer->GetResendCheck() && !pData->download && pData->transferInitiated)
         {
            // do something after the file has been transfered succussfully.



   ... ...
}

Viewing all articles
Browse latest Browse all 11475

Trending Articles