#include <DccFileTransfer.h>
|
static void | msleep (unsigned long msec) |
|
static void | sleep (unsigned long sec) |
|
static void | usleep (unsigned long usec) |
|
◆ DccRecvThread()
◆ ~DccRecvThread()
DccRecvThread::~DccRecvThread |
( |
| ) |
|
◆ averageSpeed()
uint DccRecvThread::averageSpeed |
( |
| ) |
|
|
inline |
◆ bandwidthLimit()
unsigned int DccRecvThread::bandwidthLimit |
( |
| ) |
|
|
inline |
◆ doneGetInfo()
void DccRecvThread::doneGetInfo |
( |
| ) |
|
◆ filePosition()
quint64 DccRecvThread::filePosition |
( |
| ) |
|
|
inline |
◆ initGetInfo()
void DccRecvThread::initGetInfo |
( |
| ) |
|
◆ instantSpeed()
uint DccRecvThread::instantSpeed |
( |
| ) |
|
|
inline |
◆ postMessageEvent()
void DccRecvThread::postMessageEvent |
( |
const char * |
msg | ) |
|
|
protected |
◆ receivedBytes()
quint64 DccRecvThread::receivedBytes |
( |
| ) |
|
|
inline |
◆ run()
void DccRecvThread::run |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from KviThread.
References __tr_no_lookup_ctx, KviDccRecvThreadOptions::bNoAcks, KviDccRecvThreadOptions::bResume, KviDccRecvThreadOptions::bSend64BitAck, KviDccRecvThreadOptions::bSendZeroAck, KviError::CantOpenFileForAppending, KviError::CantOpenFileForWriting, KviSensitiveThread::dequeueEvent(), e, KviError::FileIOError, DccThread::handleInvalidSocketRead(), KviDccRecvThreadOptions::iIdleStepLengthInMSec, INSTANT_BANDWIDTH_CHECK_INTERVAL_IN_MSECS, INSTANT_BANDWIDTH_CHECK_INTERVAL_IN_SECS, KVI_DCC_RECV_75PERCENTOF_BLOCK_SIZE, KVI_DCC_RECV_BLOCK_SIZE, KVI_DCC_THREAD_EVENT_SUCCESS, KVI_INVALID_SOCKET, kvi_select(), kvi_socket_close, kvi_socket_recv(), KVI_THREAD_EVENT_TERMINATE, kvi_unixTime, KviMutex::lock(), DccThread::m_fd, m_pFile, DccThread::m_pMutex, m_pOpt, m_pTimeInterval, m_uInstantReceivedBytes, m_uInstantSpeedInterval, m_uStartTime, m_uTotalReceivedBytes, KviMSecTimeInterval::mark(), MAX_DCC_BANDWIDTH_LIMIT, KviThread::msleep(), DccThread::parent(), DccThread::postErrorEvent(), KviThread::postEvent(), postMessageEvent(), KviCString::ptr(), KviMSecTimeInterval::secondsCounter(), sendAck(), KviError::SSLError, KviDccRecvThreadOptions::szFileName, KviDccRecvThreadOptions::uMaxBandwidth, KviMutex::unlock(), updateStats(), and KviDccRecvThreadOptions::uTotalFileSize.
◆ sendAck()
bool DccRecvThread::sendAck |
( |
qint64 |
filePos, |
|
|
bool |
bUse64BitAck = false |
|
) |
| |
|
protected |
◆ setBandwidthLimit()
void DccRecvThread::setBandwidthLimit |
( |
unsigned int |
uMaxBandwidth | ) |
|
|
inline |
◆ updateStats()
void DccRecvThread::updateStats |
( |
| ) |
|
|
protected |
References INSTANT_BANDWIDTH_CHECK_INTERVAL_IN_MSECS, INSTANT_BANDWIDTH_CHECK_INTERVAL_IN_SECS, KviMutex::lock(), m_pFile, DccThread::m_pMutex, m_pTimeInterval, m_uAverageSpeed, m_uFilePosition, m_uInstantReceivedBytes, m_uInstantSpeed, m_uInstantSpeedInterval, m_uStartTime, m_uTotalReceivedBytes, KviMSecTimeInterval::mark(), KviMSecTimeInterval::secondsCounter(), and KviMutex::unlock().
Referenced by run().
◆ m_pFile
QFile* DccRecvThread::m_pFile |
|
protected |
◆ m_pOpt
◆ m_pTimeInterval
◆ m_uAverageSpeed
uint DccRecvThread::m_uAverageSpeed |
|
protected |
◆ m_uFilePosition
quint64 DccRecvThread::m_uFilePosition |
|
protected |
◆ m_uInstantReceivedBytes
quint64 DccRecvThread::m_uInstantReceivedBytes |
|
protected |
◆ m_uInstantSpeed
uint DccRecvThread::m_uInstantSpeed |
|
protected |
◆ m_uInstantSpeedInterval
quint64 DccRecvThread::m_uInstantSpeedInterval |
|
protected |
◆ m_uStartTime
unsigned long DccRecvThread::m_uStartTime |
|
protected |
◆ m_uTotalReceivedBytes
quint64 DccRecvThread::m_uTotalReceivedBytes |
|
protected |
The documentation for this class was generated from the following files: