Qt 6.x
The Qt SDK
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 ()
 
virtual char methodId ()
 
virtual bool beginAuthenticate (QTcpSocket *socket, bool *completed)
 
virtual bool continueAuthenticate (QTcpSocket *socket, bool *completed)
 
bool seal (const QByteArray &buf, QByteArray *sealedBuf)
 
bool unSeal (const QByteArray &sealedBuf, QByteArray *buf)
 
bool unSeal (QTcpSocket *sealedSocket, QByteArray *buf)
 
virtual QString errorString ()
 

Detailed Description

Definition at line 131 of file qsocks5socketengine_p.h.

Constructor & Destructor Documentation

◆ QSocks5PasswordAuthenticator()

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

Definition at line 417 of file qsocks5socketengine.cpp.

Member Function Documentation

◆ beginAuthenticate()

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

Reimplemented from QSocks5Authenticator.

Definition at line 428 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 445 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 463 of file qsocks5socketengine.cpp.

◆ methodId()

char QSocks5PasswordAuthenticator::methodId ( )
overridevirtual

Reimplemented from QSocks5Authenticator.

Definition at line 423 of file qsocks5socketengine.cpp.


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