MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / CFTPClient

Method CFTPClient

deps/FtpClient/FTPClient.cpp:311–326  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

309/// the response. Sometimes the socket hangs if no wait time
310/// is set. Normally not wait time is necessary.
311CFTPClient::CFTPClient(std::unique_ptr<IBlockingSocket> apSocket, unsigned int uiTimeout/*=10*/,
312 unsigned int uiBufferSize/*=2048*/, unsigned int uiResponseWait/*=0*/,
313 const tstring& strRemoteDirectorySeparator/*=_T("/")*/) :
314mc_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
329CFTPClient::~CFTPClient()

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected