Thanks for your response!
Here are my thoughts:
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.
... ...
}
{
... ...
// 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.
... ...
}