#include <DccFileTransfer.h>
DccSendThread::~DccSendThread |
( |
| ) |
|
quint64 DccSendThread::ackedBytes |
( |
| ) |
|
|
inline |
uint DccSendThread::averageSpeed |
( |
| ) |
|
|
inline |
unsigned int DccSendThread::bandwidthLimit |
( |
| ) |
|
|
inline |
void DccSendThread::doneGetInfo |
( |
| ) |
|
quint64 DccSendThread::filePosition |
( |
| ) |
|
|
inline |
void DccSendThread::initGetInfo |
( |
| ) |
|
uint DccSendThread::instantSpeed |
( |
| ) |
|
|
inline |
void DccSendThread::run |
( |
| ) |
|
|
protectedvirtual |
Reimplemented from KviThread.
References __tr2qs_ctx(), KviError::AcknowledgeError, KviMemory::allocate(), _KviDccSendThreadOptions::bFastSend, _KviDccSendThreadOptions::bIsTdcc, _KviDccSendThreadOptions::bNoAcks, _ack_buffer::cAckBuffer, KviError::CantOpenFileForReading, KviError::CantSendAZeroSizeFile, KviSensitiveThread::dequeueEvent(), e, KviError::FileIOError, KviMemory::free(), DccThread::handleInvalidSocketRead(), _ack_buffer::i32AckBuffer, _KviDccSendThreadOptions::iIdleStepLengthInMSec, INSTANT_BANDWIDTH_CHECK_INTERVAL_IN_MSECS, INSTANT_BANDWIDTH_CHECK_INTERVAL_IN_SECS, _KviDccSendThreadOptions::iPacketSize, KVI_DCC_THREAD_EVENT_MESSAGE, KVI_DCC_THREAD_EVENT_SUCCESS, KVI_INVALID_SOCKET, kvi_select(), kvi_socket_close, kvi_socket_error(), kvi_socket_recv(), kvi_socket_send(), KVI_THREAD_EVENT_TERMINATE, KviMutex::lock(), DccThread::m_fd, DccThread::m_pMutex, m_pOpt, m_pTimeInterval, m_uAckedBytes, m_uFilePosition, m_uInstantSentBytes, m_uInstantSpeedInterval, m_uStartTime, m_uTotalSentBytes, KviMSecTimeInterval::mark(), MAX_DCC_BANDWIDTH_LIMIT, KviThread::msleep(), DccThread::parent(), DccThread::postErrorEvent(), KviThread::postEvent(), KviCString::ptr(), KviError::RemoteEndClosedConnection, KviMSecTimeInterval::secondsCounter(), KviThreadDataEvent< TData >::setData(), KviError::SSLError, KviError::Success, _KviDccSendThreadOptions::szFileName, KviError::translateSystemError(), _KviDccSendThreadOptions::uMaxBandwidth, KviMutex::unlock(), updateStats(), and _KviDccSendThreadOptions::uStartPosition.
quint64 DccSendThread::sentBytes |
( |
| ) |
|
|
inline |
void DccSendThread::setBandwidthLimit |
( |
unsigned int |
uMaxBandwidth | ) |
|
|
inline |
void DccSendThread::updateStats |
( |
| ) |
|
|
protected |
References _KviDccSendThreadOptions::bNoAcks, INSTANT_BANDWIDTH_CHECK_INTERVAL_IN_MSECS, INSTANT_BANDWIDTH_CHECK_INTERVAL_IN_SECS, KviMutex::lock(), DccThread::m_pMutex, m_pOpt, m_pTimeInterval, m_uAckedBytes, m_uAverageSpeed, m_uInstantSentBytes, m_uInstantSpeed, m_uInstantSpeedInterval, m_uStartTime, m_uTotalSentBytes, KviMSecTimeInterval::mark(), KviMSecTimeInterval::secondsCounter(), KviMutex::unlock(), and _KviDccSendThreadOptions::uStartPosition.
Referenced by run().
quint64 DccSendThread::m_uAckedBytes |
|
private |
uint DccSendThread::m_uAverageSpeed |
|
private |
quint64 DccSendThread::m_uFilePosition |
|
private |
quint64 DccSendThread::m_uInstantSentBytes |
|
private |
uint DccSendThread::m_uInstantSpeed |
|
private |
unsigned long DccSendThread::m_uInstantSpeedInterval |
|
private |
unsigned long DccSendThread::m_uStartTime |
|
private |
quint64 DccSendThread::m_uTotalSentBytes |
|
private |
The documentation for this class was generated from the following files: