api-daemon/httpserver.h

24 lines
441 B
C++
Executable File

// GPLv3 (c) acetone, 2022
// Zero Storage Captcha
#ifndef HTTPSERVER_H
#define HTTPSERVER_H
#include <QObject>
#include <QTcpServer>
#include <QThreadPool>
class HttpServer : public QTcpServer
{
Q_OBJECT
public:
explicit HttpServer(const QString& address, quint16 port, int threads, QObject *parent = nullptr);
private:
QThreadPool *m_pool;
void incomingConnection (qintptr handle) override;
};
#endif // HTTPSERVER_H