KVIrc 5.2.6
Developer APIs
DccRecvThread Class Reference

#include <DccFileTransfer.h>

+ Inheritance diagram for DccRecvThread:

Public Member Functions

uint averageSpeed ()
 
unsigned int bandwidthLimit ()
 
 DccRecvThread (QObject *par, kvi_socket_t fd, KviDccRecvThreadOptions *opt)
 
void doneGetInfo ()
 
quint64 filePosition ()
 
void initGetInfo ()
 
uint instantSpeed ()
 
quint64 receivedBytes ()
 
void setBandwidthLimit (unsigned int uMaxBandwidth)
 
 ~DccRecvThread ()
 
- Public Member Functions inherited from DccThread
 DccThread (QObject *par, kvi_socket_t fd)
 
QObject * parent ()
 
void postErrorEvent (int err)
 
void postMessageEvent (const char *message)
 
 ~DccThread ()
 
- Public Member Functions inherited from KviSensitiveThread
void enqueueEvent (KviThreadEvent *e)
 
 KviSensitiveThread ()
 
void terminate ()
 
virtual ~KviSensitiveThread ()
 
- Public Member Functions inherited from KviThread
void internalThreadRun_doNotTouchThis ()
 
bool isRunning ()
 
bool isStartingUp ()
 
 KviThread ()
 
bool start ()
 
void wait ()
 
virtual ~KviThread ()
 

Protected Member Functions

void postMessageEvent (const char *msg)
 
virtual void run ()
 
bool sendAck (qint64 filePos, bool bUse64BitAck=false)
 
void updateStats ()
 
- Protected Member Functions inherited from DccThread
bool handleInvalidSocketRead (int readLen)
 
- Protected Member Functions inherited from KviSensitiveThread
KviThreadEventdequeueEvent ()
 
- Protected Member Functions inherited from KviThread
void exit ()
 
virtual void postEvent (QObject *o, QEvent *e)
 

Protected Attributes

QFile * m_pFile
 
KviDccRecvThreadOptionsm_pOpt
 
KviMSecTimeIntervalm_pTimeInterval
 
uint m_uAverageSpeed
 
quint64 m_uFilePosition
 
quint64 m_uInstantReceivedBytes
 
uint m_uInstantSpeed
 
quint64 m_uInstantSpeedInterval
 
unsigned long m_uStartTime
 
quint64 m_uTotalReceivedBytes
 
- Protected Attributes inherited from DccThread
kvi_socket_t m_fd
 
KviMutexm_pMutex
 
QObject * m_pParent
 
- Protected Attributes inherited from KviSensitiveThread
KviPointerList< KviThreadEvent > * m_pLocalEventQueue
 
KviMutexm_pLocalEventQueueMutex
 

Additional Inherited Members

- Static Public Member Functions inherited from KviThread
static void msleep (unsigned long msec)
 
static void sleep (unsigned long sec)
 
static void usleep (unsigned long usec)
 

Constructor & Destructor Documentation

◆ DccRecvThread()

◆ ~DccRecvThread()

DccRecvThread::~DccRecvThread ( )

References m_pFile, m_pOpt, and m_pTimeInterval.

Member Function Documentation

◆ averageSpeed()

uint DccRecvThread::averageSpeed ( )
inline

◆ bandwidthLimit()

unsigned int DccRecvThread::bandwidthLimit ( )
inline

◆ doneGetInfo()

◆ filePosition()

quint64 DccRecvThread::filePosition ( )
inline

◆ initGetInfo()

◆ instantSpeed()

uint DccRecvThread::instantSpeed ( )
inline

◆ postMessageEvent()

void DccRecvThread::postMessageEvent ( const char * msg)
protected

◆ receivedBytes()

quint64 DccRecvThread::receivedBytes ( )
inline

◆ run()

◆ sendAck()

bool DccRecvThread::sendAck ( qint64 filePos,
bool bUse64BitAck = false )
protected

(defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW))

(defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW))

References KviError::AcknowledgeError, kvi_socket_error(), kvi_socket_send(), DccThread::m_fd, KviThread::msleep(), DccThread::postErrorEvent(), and KviError::SSLError.

Referenced by run().

◆ setBandwidthLimit()

void DccRecvThread::setBandwidthLimit ( unsigned int uMaxBandwidth)
inline

◆ updateStats()

Member Data Documentation

◆ m_pFile

QFile* DccRecvThread::m_pFile
protected

◆ m_pOpt

KviDccRecvThreadOptions* DccRecvThread::m_pOpt
protected

◆ m_pTimeInterval

KviMSecTimeInterval* DccRecvThread::m_pTimeInterval
protected

◆ m_uAverageSpeed

uint DccRecvThread::m_uAverageSpeed
protected

◆ m_uFilePosition

quint64 DccRecvThread::m_uFilePosition
protected

◆ m_uInstantReceivedBytes

quint64 DccRecvThread::m_uInstantReceivedBytes
protected

Referenced by DccRecvThread(), run(), and updateStats().

◆ m_uInstantSpeed

uint DccRecvThread::m_uInstantSpeed
protected

◆ m_uInstantSpeedInterval

quint64 DccRecvThread::m_uInstantSpeedInterval
protected

Referenced by DccRecvThread(), run(), and updateStats().

◆ m_uStartTime

unsigned long DccRecvThread::m_uStartTime
protected

Referenced by DccRecvThread(), run(), and updateStats().

◆ m_uTotalReceivedBytes

quint64 DccRecvThread::m_uTotalReceivedBytes
protected

The documentation for this class was generated from the following files: