Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSocks5PasswordAuthenticator Class Reference

#include <qsocks5socketengine_p.h>

+ Inheritance diagram for QSocks5PasswordAuthenticator:
+ Collaboration diagram for QSocks5PasswordAuthenticator:

Public Member Functions

 QSocks5PasswordAuthenticator (const QString &userName, const QString &password)
 
char methodId () override
 
bool beginAuthenticate (QTcpSocket *socket, bool *completed) override
 
bool continueAuthenticate (QTcpSocket *socket, bool *completed) override
 
QString errorString () override
 
- Public Member Functions inherited from QSocks5Authenticator
 QSocks5Authenticator ()
 
virtual ~QSocks5Authenticator ()
 
bool seal (const QByteArray &buf, QByteArray *sealedBuf)
 
bool unSeal (const QByteArray &sealedBuf, QByteArray *buf)
 
bool unSeal (QTcpSocket *sealedSocket, QByteArray *buf)
 

Detailed Description

Definition at line 134 of file qsocks5socketengine_p.h.

Constructor & Destructor Documentation

◆ QSocks5PasswordAuthenticator()

QSocks5PasswordAuthenticator::QSocks5PasswordAuthenticator ( const QString & userName,
const QString & password )

Definition at line 420 of file qsocks5socketengine.cpp.

Member Function Documentation

◆ beginAuthenticate()

bool QSocks5PasswordAuthenticator::beginAuthenticate ( QTcpSocket * socket,
bool * completed )
overridevirtual

Reimplemented from QSocks5Authenticator.

Definition at line 431 of file qsocks5socketengine.cpp.

References QByteArray::data(), pos, S5_PASSWORDAUTH_VERSION, QByteArray::size(), socket, QString::toLatin1(), and QIODevice::write().

+ Here is the call graph for this function:

◆ continueAuthenticate()

bool QSocks5PasswordAuthenticator::continueAuthenticate ( QTcpSocket * socket,
bool * completed )
overridevirtual

Reimplemented from QSocks5Authenticator.

Definition at line 448 of file qsocks5socketengine.cpp.

References QAbstractSocket::bytesAvailable(), QAbstractSocket::close(), QIODevice::read(), S5_PASSWORDAUTH_VERSION, and socket.

+ Here is the call graph for this function:

◆ errorString()

QString QSocks5PasswordAuthenticator::errorString ( )
overridevirtual

Reimplemented from QSocks5Authenticator.

Definition at line 466 of file qsocks5socketengine.cpp.

◆ methodId()

char QSocks5PasswordAuthenticator::methodId ( )
overridevirtual

Reimplemented from QSocks5Authenticator.

Definition at line 426 of file qsocks5socketengine.cpp.


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