Qt 4.8
Public Functions | List of all members
QSocks5Authenticator Class Reference

#include <qsocks5socketengine_p.h>

Inheritance diagram for QSocks5Authenticator:
QSocks5PasswordAuthenticator

Public Functions

virtual bool beginAuthenticate (QTcpSocket *socket, bool *completed)
 
virtual bool continueAuthenticate (QTcpSocket *socket, bool *completed)
 
virtual QString errorString ()
 
virtual char methodId ()
 
 QSocks5Authenticator ()
 
virtual bool seal (const QByteArray buf, QByteArray *sealedBuf)
 
virtual bool unSeal (const QByteArray sealedBuf, QByteArray *buf)
 
virtual bool unSeal (QTcpSocket *sealedSocket, QByteArray *buf)
 
virtual ~QSocks5Authenticator ()
 

Detailed Description

Definition at line 151 of file qsocks5socketengine_p.h.

Constructors and Destructors

◆ QSocks5Authenticator()

QSocks5Authenticator::QSocks5Authenticator ( )

Definition at line 424 of file qsocks5socketengine.cpp.

425 {
426 }

◆ ~QSocks5Authenticator()

QSocks5Authenticator::~QSocks5Authenticator ( )
virtual

Definition at line 428 of file qsocks5socketengine.cpp.

429 {
430 }

Functions

◆ beginAuthenticate()

bool QSocks5Authenticator::beginAuthenticate ( QTcpSocket socket,
bool *  completed 
)
virtual

Reimplemented in QSocks5PasswordAuthenticator.

Definition at line 437 of file qsocks5socketengine.cpp.

Referenced by QSocks5SocketEnginePrivate::parseAuthenticationMethodReply().

438 {
439  Q_UNUSED(socket);
440  *completed = true;
441  return true;
442 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ continueAuthenticate()

bool QSocks5Authenticator::continueAuthenticate ( QTcpSocket socket,
bool *  completed 
)
virtual

Reimplemented in QSocks5PasswordAuthenticator.

Definition at line 444 of file qsocks5socketengine.cpp.

Referenced by QSocks5SocketEnginePrivate::parseAuthenticatingReply().

445 {
446  Q_UNUSED(socket);
447  *completed = true;
448  return true;
449 }
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
Definition: qglobal.h:1729

◆ errorString()

virtual QString QSocks5Authenticator::errorString ( )
inlinevirtual

Reimplemented in QSocks5PasswordAuthenticator.

Definition at line 164 of file qsocks5socketengine_p.h.

164 { return QString(); }
The QString class provides a Unicode character string.
Definition: qstring.h:83

◆ methodId()

char QSocks5Authenticator::methodId ( )
virtual

Reimplemented in QSocks5PasswordAuthenticator.

Definition at line 432 of file qsocks5socketengine.cpp.

Referenced by QSocks5SocketEnginePrivate::parseAuthenticationMethodReply().

433 {
434  return 0x00;
435 }

◆ seal()

bool QSocks5Authenticator::seal ( const QByteArray  buf,
QByteArray sealedBuf 
)
virtual

Definition at line 451 of file qsocks5socketengine.cpp.

Referenced by QSocks5SocketEnginePrivate::sendRequestMethod().

452 {
453  *sealedBuf = buf;
454  return true;
455 }

◆ unSeal() [1/2]

bool QSocks5Authenticator::unSeal ( const QByteArray  sealedBuf,
QByteArray buf 
)
virtual

Definition at line 457 of file qsocks5socketengine.cpp.

Referenced by QSocks5SocketEnginePrivate::parseRequestMethodReply().

458 {
459  *buf = sealedBuf;
460  return true;
461 }

◆ unSeal() [2/2]

bool QSocks5Authenticator::unSeal ( QTcpSocket sealedSocket,
QByteArray buf 
)
virtual

Definition at line 463 of file qsocks5socketengine.cpp.

464 {
465  return unSeal(sealedSocket->readAll(), buf);
466 }
virtual bool unSeal(const QByteArray sealedBuf, QByteArray *buf)
QByteArray readAll()
Reads all available data from the device, and returns it as a QByteArray.
Definition: qiodevice.cpp:1025

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