8#include "QXmppGlobal.h"
10#include <QHostAddress>
15class QXMPP_EXPORT QXmppSocksClient :
public QTcpSocket
20 QXmppSocksClient(
const QString &proxyHost, quint16 proxyPort, QObject *parent =
nullptr);
21 void connectToHost(
const QString &hostName, quint16 hostPort);
38class QXMPP_EXPORT QXmppSocksServer :
public QObject
43 QXmppSocksServer(QObject *parent =
nullptr);
45 bool listen(quint16 port = 0);
47 quint16 serverPort()
const;
50 void newConnection(QTcpSocket *socket, QString hostName, quint16 port);
53 void slotNewConnection();
58 QTcpServer *m_server_v6;
59 QMap<QTcpSocket *, int> m_states;