KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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 ()
 
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 ( QObject *  par,
kvi_socket_t  fd,
KviDccRecvThreadOptions opt 
)
DccRecvThread::~DccRecvThread ( )

References m_pFile, m_pOpt, and m_pTimeInterval.

Member Function Documentation

uint DccRecvThread::averageSpeed ( )
inline
unsigned int DccRecvThread::bandwidthLimit ( )
inline
void DccRecvThread::doneGetInfo ( )
quint64 DccRecvThread::filePosition ( )
inline
void DccRecvThread::initGetInfo ( )
uint DccRecvThread::instantSpeed ( )
inline
void DccRecvThread::postMessageEvent ( const char *  msg)
protected
quint64 DccRecvThread::receivedBytes ( )
inline
void DccRecvThread::run ( )
protectedvirtual
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, DccThread::postErrorEvent(), KviError::SSLError, and KviError::Success.

Referenced by run().

void DccRecvThread::setBandwidthLimit ( unsigned int  uMaxBandwidth)
inline
void DccRecvThread::updateStats ( )
protected

Member Data Documentation

QFile* DccRecvThread::m_pFile
protected
KviDccRecvThreadOptions* DccRecvThread::m_pOpt
protected
KviMSecTimeInterval* DccRecvThread::m_pTimeInterval
protected
uint DccRecvThread::m_uAverageSpeed
protected
quint64 DccRecvThread::m_uFilePosition
protected
quint64 DccRecvThread::m_uInstantReceivedBytes
protected

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

uint DccRecvThread::m_uInstantSpeed
protected
quint64 DccRecvThread::m_uInstantSpeedInterval
protected

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

unsigned long DccRecvThread::m_uStartTime
protected

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

quint64 DccRecvThread::m_uTotalReceivedBytes
protected

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