constructor @param[in] apSocket Instance of socket class which will be used for communication with the FTP server. CFTPClient class takes ownership of this instance. It will be deleted on destruction of this object. If this pointer is NULL, the CBlockingSocket implementation will be used. This gives the ability to set an other socket class. For example a socket class can be implemented which simul
| 309 | /// the response. Sometimes the socket hangs if no wait time |
| 310 | /// is set. Normally not wait time is necessary. |
| 311 | CFTPClient::CFTPClient(std::unique_ptr<IBlockingSocket> apSocket, unsigned int uiTimeout/*=10*/, |
| 312 | unsigned int uiBufferSize/*=2048*/, unsigned int uiResponseWait/*=0*/, |
| 313 | const tstring& strRemoteDirectorySeparator/*=_T("/")*/) : |
| 314 | mc_uiTimeout(uiTimeout), |
| 315 | mc_uiResponseWait(uiResponseWait), |
| 316 | mc_strEolCharacterSequence(_T("\r\n")), |
| 317 | mc_strRemoteDirectorySeparator(strRemoteDirectorySeparator),//+# documentation missing |
| 318 | m_vBuffer(uiBufferSize), |
| 319 | m_apSckControlConnection(std::move (apSocket)), |
| 320 | m_apFileListParser(new CFTPListParser()), |
| 321 | m_fTransferInProgress(false), |
| 322 | m_fAbortTransfer(false), |
| 323 | m_fResumeIfPossible(true) |
| 324 | { |
| 325 | ASSERT( m_apSckControlConnection.get() ); |
| 326 | } |
| 327 | |
| 328 | /// destructor |
| 329 | CFTPClient::~CFTPClient() |