42 #ifndef QSOCKS5SOCKETENGINE_P_H 43 #define QSOCKS5SOCKETENGINE_P_H 81 bool connectInternal();
94 #ifndef QT_NO_UDPSOCKET 95 #ifndef QT_NO_NETWORKINTERFACE 102 #endif // QT_NO_NETWORKINTERFACE 110 #endif // QT_NO_UDPSOCKET 117 bool waitForRead(
int msecs = 30000,
bool *timedOut = 0);
118 bool waitForWrite(
int msecs = 30000,
bool *timedOut = 0);
120 bool checkRead,
bool checkWrite,
121 int msecs = 30000,
bool *timedOut = 0);
136 #ifndef QT_NO_UDPSOCKET 142 Q_PRIVATE_SLOT(d_func(),
void _q_emitPendingConnectionNotification())
156 virtual char methodId();
157 virtual bool beginAuthenticate(
QTcpSocket *socket,
bool *completed);
158 virtual bool continueAuthenticate(
QTcpSocket *socket,
bool *completed);
172 bool beginAuthenticate(
QTcpSocket *socket,
bool *completed);
173 bool continueAuthenticate(
QTcpSocket *socket,
bool *completed);
224 ConnectionNotAllowed = 0x02,
225 NetworkUnreachable = 0x03,
226 HostUnreachable = 0x04,
227 ConnectionRefused = 0x05,
229 CommandNotSupported = 0x07,
230 AddressTypeNotSupported = 0x08,
231 LastKnownError = AddressTypeNotSupported,
240 void reauthenticate();
241 void parseAuthenticationMethodReply();
242 void parseAuthenticatingReply();
243 void sendRequestMethod();
244 void parseRequestMethodReply();
245 void parseNewConnection();
247 bool waitForConnected(
int msecs,
bool *timedOut);
249 void _q_controlSocketConnected();
250 void _q_controlSocketReadNotification();
252 #ifndef QT_NO_UDPSOCKET 253 void checkForDatagrams()
const;
254 void _q_udpSocketReadNotification();
256 void _q_controlSocketBytesWritten();
257 void _q_controlSocketDisconnected();
268 #ifndef QT_NO_UDPSOCKET 278 void _q_emitPendingReadNotification();
279 void emitReadNotification();
281 void _q_emitPendingWriteNotification();
282 void emitWriteNotification();
284 void _q_emitPendingConnectionNotification();
285 void emitConnectionNotification();
298 #endif // QT_NO_SOCKS5 299 #endif // QSOCKS5SOCKETENGINE_H virtual bool isReadNotificationEnabled() const =0
virtual bool waitForRead(int msecs=30000, bool *timedOut=0)=0
virtual void setExceptionNotificationEnabled(bool enable)=0
virtual qint64 bytesToWrite() const =0
#define QT_END_NAMESPACE
This macro expands to.
SocketType
This enum describes the transport layer protocol.
virtual int socketDescriptor() const =0
bool readNotificationActivated
virtual bool connectToHostByName(const QString &name, quint16 port)=0
The QByteArray class provides an array of bytes.
QSocks5UdpAssociateData * udpData
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
virtual bool bind(const QHostAddress &address, quint16 port)=0
QSocks5BindData * bindData
NetworkLayerProtocol
This enum describes the network layer protocol values used in Qt.
The QString class provides a Unicode character string.
virtual int option(SocketOption option) const =0
virtual bool initialize(QAbstractSocket::SocketType type, QAbstractSocket::NetworkLayerProtocol protocol=QAbstractSocket::IPv4Protocol)=0
The QObject class is the base class of all Qt objects.
Q_GUI_EXPORT QString errorString(EGLint code=eglGetError())
SocketState
This enum describes the different states in which a socket can be.
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual bool isWriteNotificationEnabled() const =0
bool connectionNotificationPending
virtual bool leaveMulticastGroup(const QHostAddress &groupAddress, const QNetworkInterface &iface)=0
virtual void setWriteNotificationEnabled(bool enable)=0
SocketError
This enum describes the socket errors that can occur.
bool writeNotificationPending
static const char * data(const QByteArray &arr)
The QTcpSocket class provides a TCP socket.
virtual bool joinMulticastGroup(const QHostAddress &groupAddress, const QNetworkInterface &iface)=0
virtual qint64 write(const char *data, qint64 len)=0
virtual bool hasPendingDatagrams() const =0
virtual QNetworkInterface multicastInterface() const =0
virtual qint64 readDatagram(char *data, qint64 maxlen, QHostAddress *addr=0, quint16 *port=0)=0
bool writeNotificationActivated
virtual bool isExceptionNotificationEnabled() const =0
#define Q_DECLARE_PUBLIC(Class)
bool readNotificationPending
virtual bool setMulticastInterface(const QNetworkInterface &iface)=0
virtual QString errorString()
#define Q_AUTOTEST_EXPORT
virtual bool waitForWrite(int msecs=30000, bool *timedOut=0)=0
virtual bool setOption(SocketOption option, int value)=0
virtual qint64 writeDatagram(const char *data, qint64 len, const QHostAddress &addr, quint16 port)=0
virtual qint64 read(char *data, qint64 maxlen)=0
#define Q_DECLARE_PRIVATE(Class)
virtual bool isValid() const =0
The QNetworkInterface class provides a listing of the host's IP addresses and network interfaces...
bool writeNotificationEnabled
The QHostAddress class provides an IP address.
QSocks5ConnectData * connectData
virtual void setReadNotificationEnabled(bool enable)=0
virtual bool connectToHost(const QHostAddress &address, quint16 port)=0
virtual bool waitForReadOrWrite(bool *readyToRead, bool *readyToWrite, bool checkRead, bool checkWrite, int msecs=30000, bool *timedOut=0)=0
virtual qint64 bytesAvailable() const =0
virtual qint64 pendingDatagramSize() const =0