KVIrc  4.9.2
DeveloperAPIs
Signals | Public Member Functions | Protected Attributes | Private Slots | Private Member Functions | List of all members
DccMarshal Class Reference

#include <DccMarshal.h>

+ Inheritance diagram for DccMarshal:

Signals

void connected ()
 
void error (KviError::Code)
 
void inProgress ()
 
void sslError (const char *msg)
 
void startingSSLHandshake ()
 

Public Member Functions

void abort ()
 
KviError::Code dccConnect (const char *ip, const char *port, bool bUseTimeout, bool bUseSSL=false)
 
const QString & dccIp () const
 
KviError::Code dccListen (const QString &ip, const QString &port, bool bUseTimeout, bool bUseSSL=false)
 
 DccMarshal (DccMarshalOutputContext *ctx)
 
const QString & dccPort () const
 
const QString & localIp () const
 
const QString & localPort () const
 
kvi_socket_t releaseSocket ()
 
const QString & remoteIp () const
 
const QString & remotePort () const
 
 ~DccMarshal ()
 

Protected Attributes

bool m_bIPv6
 
bool m_bOutgoing
 
bool m_bUseTimeout
 
kvi_socket_t m_fd
 
DccMarshalOutputContextm_pOutputContext
 
QSocketNotifier * m_pSn
 
QTimer * m_pTimeoutTimer
 
QString m_szIp
 
QString m_szPort
 
QString m_szSecondaryIp
 
QString m_szSecondaryPort
 
kvi_u32_t m_uPort
 

Private Slots

void connectionTimedOut ()
 
void doConnect ()
 
void doListen ()
 
void doSSLHandshake (int)
 
void snActivated (int)
 

Private Member Functions

void reset ()
 

Constructor & Destructor Documentation

DccMarshal::DccMarshal ( DccMarshalOutputContext ctx)
DccMarshal::~DccMarshal ( )

References reset().

Member Function Documentation

void DccMarshal::abort ( )

References reset().

Referenced by DccFileTransfer::abort().

void DccMarshal::connected ( )
signal

Referenced by doSSLHandshake(), and snActivated().

void DccMarshal::connectionTimedOut ( )
privateslot

References KviError::ConnectionTimedOut, error(), and reset().

Referenced by doConnect(), and doListen().

KviError::Code DccMarshal::dccConnect ( const char *  ip,
const char *  port,
bool  bUseTimeout,
bool  bUseSSL = false 
)
const QString& DccMarshal::dccIp ( ) const
inline

References m_szIp.

KviError::Code DccMarshal::dccListen ( const QString &  ip,
const QString &  port,
bool  bUseTimeout,
bool  bUseSSL = false 
)
const QString& DccMarshal::dccPort ( ) const
inline

References m_szPort.

Referenced by DccFileTransfer::doResume().

void DccMarshal::doConnect ( )
privateslot
void DccMarshal::doListen ( )
privateslot
void DccMarshal::doSSLHandshake ( int  )
privateslot
void DccMarshal::error ( KviError::Code  )
signal
void DccMarshal::inProgress ( )
signal

Referenced by doConnect(), and doListen().

const QString& DccMarshal::localIp ( ) const
inline
const QString& DccMarshal::localPort ( ) const
inline
kvi_socket_t DccMarshal::releaseSocket ( )
const QString& DccMarshal::remoteIp ( ) const
inline
const QString& DccMarshal::remotePort ( ) const
inline
void DccMarshal::reset ( )
private
void DccMarshal::snActivated ( int  )
privateslot
void DccMarshal::sslError ( const char *  msg)
signal

Referenced by doSSLHandshake().

void DccMarshal::startingSSLHandshake ( )
signal

Referenced by snActivated().

Member Data Documentation

bool DccMarshal::m_bIPv6
protected
bool DccMarshal::m_bOutgoing
protected
bool DccMarshal::m_bUseTimeout
protected
kvi_socket_t DccMarshal::m_fd
protected
DccMarshalOutputContext* DccMarshal::m_pOutputContext
protected

Referenced by DccMarshal(), and snActivated().

QSocketNotifier* DccMarshal::m_pSn
protected
QTimer* DccMarshal::m_pTimeoutTimer
protected
QString DccMarshal::m_szIp
protected
QString DccMarshal::m_szPort
protected
QString DccMarshal::m_szSecondaryIp
protected
QString DccMarshal::m_szSecondaryPort
protected
kvi_u32_t DccMarshal::m_uPort
protected

Referenced by doConnect(), and doListen().


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