![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qsocks5socketengine_p.h>
Public Types | |
enum | Socks5State { Uninitialized = 0 , ConnectError , AuthenticationMethodsSent , Authenticating , AuthenticatingError , RequestMethodSent , RequestError , Connected , UdpAssociateSuccess , BindSuccess , ControlSocketError , SocksError , HostNameLookupError } |
enum | Socks5Mode { NoMode , ConnectMode , BindMode , UdpAssociateMode } |
enum | Socks5Error { SocksFailure = 0x01 , ConnectionNotAllowed = 0x02 , NetworkUnreachable = 0x03 , HostUnreachable = 0x04 , ConnectionRefused = 0x05 , TTLExpired = 0x06 , CommandNotSupported = 0x07 , AddressTypeNotSupported = 0x08 , LastKnownError = AddressTypeNotSupported , UnknownError } |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Additional Inherited Members | |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1, typename Func2> | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1, typename Func2> | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Definition at line 155 of file qsocks5socketengine_p.h.
Enumerator | |
---|---|
SocksFailure | |
ConnectionNotAllowed | |
NetworkUnreachable | |
HostUnreachable | |
ConnectionRefused | |
TTLExpired | |
CommandNotSupported | |
AddressTypeNotSupported | |
LastKnownError | |
UnknownError |
Definition at line 189 of file qsocks5socketengine_p.h.
Enumerator | |
---|---|
NoMode | |
ConnectMode | |
BindMode | |
UdpAssociateMode |
Definition at line 180 of file qsocks5socketengine_p.h.
Definition at line 162 of file qsocks5socketengine_p.h.
QSocks5SocketEnginePrivate::QSocks5SocketEnginePrivate | ( | ) |
Definition at line 473 of file qsocks5socketengine.cpp.
References bindData, connectData, connectionNotificationPending, data, exceptNotificationEnabled, mode, NoMode, readNotificationActivated, readNotificationEnabled, readNotificationPending, socks5State, udpData, Uninitialized, writeNotificationActivated, writeNotificationEnabled, and writeNotificationPending.
QSocks5SocketEnginePrivate::~QSocks5SocketEnginePrivate | ( | ) |
Definition at line 494 of file qsocks5socketengine.cpp.
void QSocks5SocketEnginePrivate::_q_controlSocketBytesWritten | ( | ) |
Definition at line 1187 of file qsocks5socketengine.cpp.
References Connected, ConnectMode, QSocks5Data::controlSocket, data, emitWriteNotification(), MaxWriteBufferSize, mode, socks5State, and writeNotificationActivated.
void QSocks5SocketEnginePrivate::_q_controlSocketConnected | ( | ) |
Definition at line 1126 of file qsocks5socketengine.cpp.
References AuthenticationMethodsSent, QSocks5Data::authenticator, QSocks5Data::controlSocket, data, QSocks5Authenticator::methodId(), and socks5State.
void QSocks5SocketEnginePrivate::_q_controlSocketDisconnected | ( | ) |
Definition at line 1232 of file qsocks5socketengine.cpp.
void QSocks5SocketEnginePrivate::_q_controlSocketErrorOccurred | ( | QAbstractSocket::SocketError | error | ) |
Definition at line 1201 of file qsocks5socketengine.cpp.
References Authenticating, AuthenticationMethodsSent, connectData, ConnectError, QSocks5Data::controlSocket, ControlSocketError, data, emitConnectionNotification(), emitReadNotification(), emitWriteNotification(), readNotificationPending, RequestMethodSent, setErrorState(), socks5State, and Uninitialized.
void QSocks5SocketEnginePrivate::_q_controlSocketReadNotification | ( | ) |
Definition at line 1137 of file qsocks5socketengine.cpp.
References _q_controlSocketReadNotification(), Authenticating, AuthenticationMethodsSent, QSocks5Data::authenticator, BindMode, BindSuccess, connectData, Connected, QSocks5Data::controlSocket, data, emitReadNotification(), mode, parseAuthenticatingReply(), parseAuthenticationMethodReply(), parseRequestMethodReply(), RequestMethodSent, and socks5State.
Referenced by _q_controlSocketReadNotification().
void QSocks5SocketEnginePrivate::_q_controlSocketStateChanged | ( | QAbstractSocket::SocketState | state | ) |
Definition at line 1237 of file qsocks5socketengine.cpp.
void QSocks5SocketEnginePrivate::_q_emitPendingConnectionNotification | ( | ) |
Definition at line 927 of file qsocks5socketengine.cpp.
References connectionNotificationPending.
void QSocks5SocketEnginePrivate::_q_emitPendingReadNotification | ( | ) |
Definition at line 876 of file qsocks5socketengine.cpp.
References connectData, emitReadNotification(), readNotificationEnabled, and readNotificationPending.
void QSocks5SocketEnginePrivate::_q_emitPendingWriteNotification | ( | ) |
Definition at line 906 of file qsocks5socketengine.cpp.
References writeNotificationEnabled, and writeNotificationPending.
void QSocks5SocketEnginePrivate::_q_udpSocketReadNotification | ( | ) |
Definition at line 1243 of file qsocks5socketengine.cpp.
References QSocks5Data::authenticator, data, emitReadNotification(), and udpData.
void QSocks5SocketEnginePrivate::emitConnectionNotification | ( | ) |
Definition at line 935 of file qsocks5socketengine.cpp.
References connectionNotificationPending.
Referenced by _q_controlSocketErrorOccurred(), parseAuthenticationMethodReply(), parseRequestMethodReply(), and reauthenticate().
void QSocks5SocketEnginePrivate::emitReadNotification | ( | ) |
Definition at line 895 of file qsocks5socketengine.cpp.
References readNotificationActivated, readNotificationEnabled, and readNotificationPending.
Referenced by _q_controlSocketErrorOccurred(), _q_controlSocketReadNotification(), _q_emitPendingReadNotification(), _q_udpSocketReadNotification(), and parseRequestMethodReply().
void QSocks5SocketEnginePrivate::emitWriteNotification | ( | ) |
Definition at line 916 of file qsocks5socketengine.cpp.
References writeNotificationActivated, writeNotificationEnabled, and writeNotificationPending.
Referenced by _q_controlSocketBytesWritten(), and _q_controlSocketErrorOccurred().
void QSocks5SocketEnginePrivate::initialize | ( | Socks5Mode | socks5Mode | ) |
Definition at line 498 of file qsocks5socketengine.cpp.
References QSocks5Authenticator::QSocks5Authenticator(), QSocks5Data::authenticator, bindData, BindMode, connectData, ConnectMode, data, mode, UdpAssociateMode, and udpData.
void QSocks5SocketEnginePrivate::parseAuthenticatingReply | ( | ) |
Definition at line 735 of file qsocks5socketengine.cpp.
References QSocks5Data::authenticator, QSocks5Authenticator::continueAuthenticate(), QSocks5Data::controlSocket, data, reauthenticate(), and sendRequestMethod().
Referenced by _q_controlSocketReadNotification().
void QSocks5SocketEnginePrivate::parseAuthenticationMethodReply | ( | ) |
Definition at line 700 of file qsocks5socketengine.cpp.
References Authenticating, QSocks5Data::authenticator, QSocks5Authenticator::beginAuthenticate(), QSocks5Data::controlSocket, data, emitConnectionNotification(), QSocks5Authenticator::methodId(), reauthenticate(), sendRequestMethod(), setErrorState(), socks5State, and SocksError.
Referenced by _q_controlSocketReadNotification().
void QSocks5SocketEnginePrivate::parseNewConnection | ( | ) |
void QSocks5SocketEnginePrivate::parseRequestMethodReply | ( | ) |
Definition at line 791 of file qsocks5socketengine.cpp.
References QSocks5Data::authenticator, bindData, BindMode, BindSuccess, Connected, ConnectMode, QSocks5Data::controlSocket, data, emitConnectionNotification(), emitReadNotification(), HostNameLookupError, QAbstractSocketEnginePrivate::inboundStreamCount, mode, QAbstractSocketEnginePrivate::outboundStreamCount, RequestError, RequestMethodSent, setErrorState(), socks5State, SocksError, and UdpAssociateSuccess.
Referenced by _q_controlSocketReadNotification().
void QSocks5SocketEnginePrivate::reauthenticate | ( | ) |
Definition at line 668 of file qsocks5socketengine.cpp.
References AuthenticatingError, QSocks5Data::authenticator, QSocks5Data::controlSocket, data, emitConnectionNotification(), setErrorState(), socks5State, and Uninitialized.
Referenced by parseAuthenticatingReply(), and parseAuthenticationMethodReply().
void QSocks5SocketEnginePrivate::sendRequestMethod | ( | ) |
Definition at line 746 of file qsocks5socketengine.cpp.
References QSocks5Data::authenticator, BindMode, ConnectMode, QSocks5Data::controlSocket, data, mode, RequestMethodSent, and socks5State.
Referenced by parseAuthenticatingReply(), and parseAuthenticationMethodReply().
void QSocks5SocketEnginePrivate::setErrorState | ( | Socks5State | state, |
const QString & | extraMessage = QString() ) |
Definition at line 547 of file qsocks5socketengine.cpp.
References Authenticating, AuthenticationMethodsSent, BindSuccess, Connected, ConnectError, QSocks5Data::controlSocket, ControlSocketError, data, RequestError, RequestMethodSent, socks5State, UdpAssociateSuccess, and Uninitialized.
void QSocks5SocketEnginePrivate::setErrorState | ( | Socks5State | state, |
Socks5Error | socks5error ) |
Definition at line 622 of file qsocks5socketengine.cpp.
References setErrorState().
Referenced by _q_controlSocketErrorOccurred(), parseAuthenticationMethodReply(), parseRequestMethodReply(), reauthenticate(), setErrorState(), and waitForConnected().
bool QSocks5SocketEnginePrivate::waitForConnected | ( | QDeadlineTimer | deadline, |
bool * | timedOut ) |
Definition at line 1680 of file qsocks5socketengine.cpp.
References BindMode, BindSuccess, Connected, ConnectMode, QSocks5Data::controlSocket, ControlSocketError, data, mode, setErrorState(), socks5State, and UdpAssociateSuccess.
QSocks5BindData* QSocks5SocketEnginePrivate::bindData |
Definition at line 238 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), initialize(), and parseRequestMethodReply().
QSocks5ConnectData* QSocks5SocketEnginePrivate::connectData |
Definition at line 234 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_controlSocketErrorOccurred(), _q_controlSocketReadNotification(), _q_emitPendingReadNotification(), and initialize().
bool QSocks5SocketEnginePrivate::connectionNotificationPending |
Definition at line 251 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_emitPendingConnectionNotification(), and emitConnectionNotification().
QSocks5Data* QSocks5SocketEnginePrivate::data |
Definition at line 233 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_controlSocketBytesWritten(), _q_controlSocketConnected(), _q_controlSocketErrorOccurred(), _q_controlSocketReadNotification(), _q_udpSocketReadNotification(), initialize(), parseAuthenticatingReply(), parseAuthenticationMethodReply(), parseRequestMethodReply(), reauthenticate(), sendRequestMethod(), setErrorState(), and waitForConnected().
bool QSocks5SocketEnginePrivate::exceptNotificationEnabled |
Definition at line 229 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate().
Socks5Mode QSocks5SocketEnginePrivate::mode |
Definition at line 187 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_controlSocketBytesWritten(), _q_controlSocketReadNotification(), initialize(), parseRequestMethodReply(), sendRequestMethod(), and waitForConnected().
QString QSocks5SocketEnginePrivate::peerName |
Definition at line 239 of file qsocks5socketengine_p.h.
QNetworkProxy QSocks5SocketEnginePrivate::proxyInfo |
Definition at line 227 of file qsocks5socketengine_p.h.
|
mutable |
Definition at line 242 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), and emitReadNotification().
bool QSocks5SocketEnginePrivate::readNotificationEnabled |
Definition at line 229 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_emitPendingReadNotification(), and emitReadNotification().
bool QSocks5SocketEnginePrivate::readNotificationPending |
Definition at line 245 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_controlSocketErrorOccurred(), _q_emitPendingReadNotification(), and emitReadNotification().
QByteArray QSocks5SocketEnginePrivate::receivedHeaderFragment |
Definition at line 240 of file qsocks5socketengine_p.h.
qintptr QSocks5SocketEnginePrivate::socketDescriptor |
Definition at line 231 of file qsocks5socketengine_p.h.
Socks5State QSocks5SocketEnginePrivate::socks5State |
Definition at line 178 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_controlSocketBytesWritten(), _q_controlSocketConnected(), _q_controlSocketErrorOccurred(), _q_controlSocketReadNotification(), parseAuthenticationMethodReply(), parseRequestMethodReply(), reauthenticate(), sendRequestMethod(), setErrorState(), and waitForConnected().
QSocks5UdpAssociateData* QSocks5SocketEnginePrivate::udpData |
Definition at line 236 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_udpSocketReadNotification(), and initialize().
|
mutable |
Definition at line 243 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_controlSocketBytesWritten(), and emitWriteNotification().
bool QSocks5SocketEnginePrivate::writeNotificationEnabled |
Definition at line 229 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_emitPendingWriteNotification(), and emitWriteNotification().
bool QSocks5SocketEnginePrivate::writeNotificationPending |
Definition at line 248 of file qsocks5socketengine_p.h.
Referenced by QSocks5SocketEnginePrivate(), _q_emitPendingWriteNotification(), and emitWriteNotification().