#include <KviIrcConnectionTargetResolver.h>
Enumerator |
---|
Idle |
|
Running |
|
Terminated |
|
KviIrcConnectionTargetResolver::KviIrcConnectionTargetResolver |
( |
KviIrcConnection * |
pConnection | ) |
|
|
protected |
References KviIrcConnection::console(), Idle, m_eState, m_eStatus, m_iLastError, m_pConnection, m_pConsole, m_pProxyDns, m_pServerDns, m_pStartTimer, m_pTarget, KviError::Success, and Success.
KviIrcConnectionTargetResolver::~KviIrcConnectionTargetResolver |
( |
| ) |
|
|
protected |
void KviIrcConnectionTargetResolver::abort |
( |
| ) |
|
void KviIrcConnectionTargetResolver::asyncStartResolve |
( |
| ) |
|
|
protectedslot |
References __tr2qs, KviProxy::hostName(), KviIrcServer::hostName(), KVI_OUT_SYSTEMMESSAGE, lookupProxyHostname(), lookupServerHostname(), m_pConsole, m_pStartTimer, m_pTarget, KviIrcNetwork::name(), KviIrcConnectionTarget::network(), KviWindow::output(), KviProxy::port(), KviIrcServer::port(), KviProxy::protocolName(), KviIrcConnectionTarget::proxy(), KviIrcConnectionTarget::server(), and KviIrcServer::useSSL().
Referenced by start().
void KviIrcConnectionTargetResolver::cleanup |
( |
| ) |
|
|
private |
void KviIrcConnectionTargetResolver::haveServerIp |
( |
| ) |
|
|
private |
References __tr2qs, _OUTPUT_MUTE, KviIrcConnectionTarget::bindAddress(), KviMainWindow::executeInternalCommand(), g_pMainWindow, KviIrcConnectionTarget::hasBindAddress(), KviIrcServer::isIPv6(), KVI_INTERNALCOMMAND_IDENT_START, KVI_OPTION_BOOL, KVI_OPTION_STRING, KVI_OUT_SYSTEMWARNING, KviOption_boolBindIrcIPv4ConnectionsToSpecifiedAddress, KviOption_boolBindIrcIPv6ConnectionsToSpecifiedAddress, KviOption_boolUseIdentService, KviOption_boolUseIdentServiceOnlyOnConnect, KviOption_stringIPv4ConnectionBindAddress, KviOption_stringIPv6ConnectionBindAddress, m_pConsole, m_pTarget, KviWindow::output(), KviIrcConnectionTarget::server(), KviIrcConnectionTarget::setBindAddress(), KviError::Success, Success, terminate(), and validateLocalAddress().
Referenced by lookupServerHostname(), and serverLookupTerminated().
int KviIrcConnectionTargetResolver::lastError |
( |
| ) |
|
|
inline |
void KviIrcConnectionTargetResolver::lookupProxyHostname |
( |
| ) |
|
|
private |
References __tr2qs, _OUTPUT_MUTE, _OUTPUT_QUIET, KviIrcConnectionTarget::clearProxy(), connect(), KviProxy::hostName(), KviProxy::Http, KviProxy::ip(), KviDnsResolver::IPv4, KviDnsResolver::IPv6, KviProxy::isIPv6(), KviNetUtils::isValidStringIp(), KVI_OUT_SYSTEMMESSAGE, KVI_OUT_SYSTEMWARNING, KviDnsResolver::lookup(), lookupServerHostname(), m_pConsole, m_pProxyDns, m_pTarget, KviWindow::output(), KviWindow::outputNoFmt(), KviProxy::protocol(), KviIrcConnectionTarget::proxy(), proxyLookupTerminated(), KviProxy::setIp(), KviProxy::Socks5, KviError::Success, Success, and terminate().
Referenced by asyncStartResolve().
void KviIrcConnectionTargetResolver::lookupServerHostname |
( |
| ) |
|
|
private |
References __tr2qs, _OUTPUT_MUTE, _OUTPUT_QUIET, KviIrcServer::cacheIp(), connect(), Error, haveServerIp(), KviIrcServer::hostName(), KviError::InternalError, KviIrcServer::ip(), KviDnsResolver::IPv4, KviDnsResolver::IPv6, KviIrcServer::isIPv6(), KviNetUtils::isValidStringIp(), KVI_OUT_SYSTEMERROR, KVI_OUT_SYSTEMMESSAGE, KviDnsResolver::lookup(), m_pConsole, m_pServerDns, m_pTarget, KviWindow::output(), KviWindow::outputNoFmt(), KviIrcConnectionTarget::server(), serverLookupTerminated(), KviIrcServer::setIp(), and terminate().
Referenced by asyncStartResolve(), lookupProxyHostname(), and proxyLookupTerminated().
void KviIrcConnectionTargetResolver::proxyLookupTerminated |
( |
KviDnsResolver * |
| ) |
|
|
protectedslot |
References __tr2qs, _OUTPUT_MUTE, KviIrcConnectionTarget::clearProxy(), KviDnsResolver::errorString(), KviDnsResolver::firstIpAddress(), g_pProxyDataBase, KviProxy::Http, KviProxy::ip(), KVI_OUT_SYSTEMERROR, KVI_OUT_SYSTEMMESSAGE, lookupServerHostname(), m_pConsole, m_pProxyDns, m_pTarget, KviWindow::output(), KviProxy::protocol(), KviIrcConnectionTarget::proxy(), KviProxy::setIp(), KviProxy::Socks5, KviDnsResolver::state(), KviError::Success, Success, KviDnsResolver::Success, terminate(), and KviProxyDataBase::updateProxyIp().
Referenced by lookupProxyHostname().
void KviIrcConnectionTargetResolver::serverLookupTerminated |
( |
KviDnsResolver * |
| ) |
|
|
protectedslot |
References __tr2qs, _OUTPUT_MUTE, _OUTPUT_QUIET, KviPointerList< T >::at(), KviQString::equalCI(), Error, KviDnsResolver::error(), KviDnsResolver::errorString(), KviDnsResolver::firstIpAddress(), haveServerIp(), KviDnsResolver::hostName(), KviIrcServer::hostName(), KviDnsResolver::ipAddressCount(), KviDnsResolver::ipAddressList(), KviIrcServer::isIPv6(), KVI_OPTION_BOOL, KVI_OUT_SYSTEMERROR, KVI_OUT_SYSTEMMESSAGE, KviOption_boolPickRandomIpAddressForRoundRobinServers, m_pConsole, m_pServerDns, m_pTarget, KviWindow::output(), r, KviIrcConnectionTarget::server(), KviIrcServer::setHostName(), KviIrcServer::setIp(), KviDnsResolver::state(), KviDnsResolver::Success, and terminate().
Referenced by lookupServerHostname().
Status KviIrcConnectionTargetResolver::status |
( |
| ) |
|
|
inline |
void KviIrcConnectionTargetResolver::terminate |
( |
Status |
s, |
|
|
int |
iLastError |
|
) |
| |
|
private |
References cleanup(), KVI_ASSERT, m_eState, m_eStatus, m_iLastError, s, Terminated, and terminated().
Referenced by abort(), haveServerIp(), lookupProxyHostname(), lookupServerHostname(), proxyLookupTerminated(), and serverLookupTerminated().
void KviIrcConnectionTargetResolver::terminated |
( |
| ) |
|
|
signal |
bool KviIrcConnectionTargetResolver::validateLocalAddress |
( |
const QString & |
szAddress, |
|
|
QString & |
szBuffer |
|
) |
| |
|
private |
State KviIrcConnectionTargetResolver::m_eState |
|
private |
Status KviIrcConnectionTargetResolver::m_eStatus |
|
private |
int KviIrcConnectionTargetResolver::m_iLastError |
|
private |
char* KviIrcConnectionTargetResolver::m_pReadBuffer |
|
private |
QTimer* KviIrcConnectionTargetResolver::m_pStartTimer |
|
private |
unsigned int KviIrcConnectionTargetResolver::m_uReadBufferLen |
|
private |
unsigned int KviIrcConnectionTargetResolver::m_uReadPackets |
|
private |
The documentation for this class was generated from the following files: