proxylight/src/proxyserver.h

23 lines
429 B
C
Raw Normal View History

2021-02-25 15:48:59 +01:00
#ifndef PROXYSERVER_H
#define PROXYSERVER_H
#include <QTcpServer>
#include <QObject>
class ProxyServer : public QTcpServer
{
Q_OBJECT
public:
ProxyServer(int localPort, int remotePort, const QString &remoteHost, const QString &serverName);
protected:
void incomingConnection(qintptr socketDescriptor);
private:
int p_remotePort;
QString p_remoteHost;
QString p_serverName;
};
#endif // PROXYSERVER_H