#include <DccMarshal.h>
DccMarshal::~DccMarshal |
( |
| ) |
|
void DccMarshal::abort |
( |
| ) |
|
void DccMarshal::connected |
( |
| ) |
|
|
signal |
void DccMarshal::connectionTimedOut |
( |
| ) |
|
|
privateslot |
KviError::Code DccMarshal::dccConnect |
( |
const char * |
ip, |
|
|
const char * |
port, |
|
|
bool |
bUseTimeout, |
|
|
bool |
bUseSSL = false |
|
) |
| |
References KviError::AnotherConnectionInProgress, doConnect(), KVI_INVALID_SOCKET, m_bOutgoing, m_bUseTimeout, m_fd, m_szIp, m_szPort, KviError::NoSSLSupport, and KviError::Success.
Referenced by DccFileTransfer::listenOrConnect(), DccChatWindow::startConnection(), DccVoiceWindow::startConnection(), and DccVideoWindow::startConnection().
const QString& DccMarshal::dccIp |
( |
| ) |
const |
|
inline |
KviError::Code DccMarshal::dccListen |
( |
const QString & |
ip, |
|
|
const QString & |
port, |
|
|
bool |
bUseTimeout, |
|
|
bool |
bUseSSL = false |
|
) |
| |
References KviError::AnotherConnectionInProgress, doListen(), KVI_INVALID_SOCKET, m_bOutgoing, m_bUseTimeout, m_fd, m_pTimeoutTimer, m_szIp, m_szPort, KviError::NoSSLSupport, and KviError::Success.
Referenced by DccFileTransfer::listenOrConnect(), DccChatWindow::startConnection(), DccVoiceWindow::startConnection(), and DccVideoWindow::startConnection().
const QString& DccMarshal::dccPort |
( |
| ) |
const |
|
inline |
void DccMarshal::doConnect |
( |
| ) |
|
|
privateslot |
References KviError::AsyncSocketFailed, connect(), connectionTimedOut(), error(), inProgress(), KviError::InvalidIpAddress, KviError::InvalidPortNumber, KviNetUtils::isValidStringIp(), KVI_INVALID_SOCKET, KVI_OPTION_UINT, kvi_socket_connect(), kvi_socket_create(), kvi_socket_error(), kvi_socket_getsockopt(), KVI_SOCKET_PF_INET, KVI_SOCKET_PF_INET6, KVI_SOCKET_PROTO_TCP, kvi_socket_recoverableConnectError(), kvi_socket_setNonBlocking(), KVI_SOCKET_TYPE_STREAM, KviOption_uintDccSocketTimeout, m_bIPv6, m_bUseTimeout, m_fd, m_pSn, m_pTimeoutTimer, m_szIp, m_szPort, m_uPort, reset(), snActivated(), KviError::SocketCreationFailed, KviError::translateSystemError(), and KviError::UnknownError.
Referenced by dccConnect().
void DccMarshal::doListen |
( |
| ) |
|
|
privateslot |
References KviSockaddr::addressLength(), KviError::BindFailed, connect(), connectionTimedOut(), error(), inProgress(), KviError::InvalidIpAddress, KviError::InvalidPortNumber, KviNetUtils::isValidStringIp(), KVI_INVALID_SOCKET, KVI_OPTION_BOOL, KVI_OPTION_UINT, kvi_socket_bind(), kvi_socket_create(), kvi_socket_getsockname(), kvi_socket_listen(), KVI_SOCKET_PF_INET, KVI_SOCKET_PF_INET6, KVI_SOCKET_PROTO_TCP, KVI_SOCKET_TYPE_STREAM, KviOption_boolUserDefinedPortRange, KviOption_uintDccMaxPort, KviOption_uintDccMinPort, KviOption_uintDccSocketTimeout, KviError::ListenFailed, m_bIPv6, m_bUseTimeout, m_fd, m_pSn, m_pTimeoutTimer, m_szIp, m_szPort, m_uPort, KviError::NoIPv6Support, KviSockaddr::port(), reset(), snActivated(), KviSockaddr::socketAddress(), and KviError::SocketCreationFailed.
Referenced by dccListen().
void DccMarshal::doSSLHandshake |
( |
int |
| ) |
|
|
privateslot |
COMPILE_SSL_SUPPORT
COMPILE_SSL_SUPPORT
References connect(), connected(), error(), KviError::InternalError, kvi_socket_error(), kvi_socket_recoverableError(), m_bOutgoing, m_fd, m_pSn, KviCString::ptr(), r, KviError::RemoteEndClosedConnection, reset(), sslError(), KviError::SSLError, KviError::Success, KviError::translateSystemError(), and KviError::UnknownError.
Referenced by snActivated().
void DccMarshal::inProgress |
( |
| ) |
|
|
signal |
const QString& DccMarshal::localIp |
( |
| ) |
const |
|
inline |
const QString& DccMarshal::localPort |
( |
| ) |
const |
|
inline |
const QString& DccMarshal::remoteIp |
( |
| ) |
const |
|
inline |
const QString& DccMarshal::remotePort |
( |
| ) |
const |
|
inline |
void DccMarshal::reset |
( |
| ) |
|
|
private |
References KVI_INVALID_SOCKET, kvi_socket_close, m_bIPv6, m_fd, m_pSn, and m_pTimeoutTimer.
Referenced by abort(), connectionTimedOut(), doConnect(), doListen(), doSSLHandshake(), snActivated(), and ~DccMarshal().
void DccMarshal::snActivated |
( |
int |
| ) |
|
|
privateslot |
References __tr2qs_ctx(), KviError::AsyncSocketFailed, KviNetUtils::binaryIpToStringIp(), connected(), DccMarshalOutputContext::dccMarshalOutputContextString(), DccMarshalOutputContext::dccMarshalOutputWindow(), doSSLHandshake(), error(), KVI_INVALID_SOCKET, kvi_socket_accept(), kvi_socket_close, kvi_socket_getsockname(), kvi_socket_getsockopt(), kvi_socket_setNonBlocking(), m_bIPv6, m_bOutgoing, m_fd, m_pOutputContext, m_pSn, m_pTimeoutTimer, m_szSecondaryIp, m_szSecondaryPort, reset(), KviError::SSLError, startingSSLHandshake(), KviError::translateSystemError(), and KviError::UnknownError.
Referenced by doConnect(), and doListen().
void DccMarshal::sslError |
( |
const char * |
msg | ) |
|
|
signal |
void DccMarshal::startingSSLHandshake |
( |
| ) |
|
|
signal |
bool DccMarshal::m_bOutgoing |
|
protected |
bool DccMarshal::m_bUseTimeout |
|
protected |
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 |
The documentation for this class was generated from the following files: