24 lines
394 B
C++
Executable File
24 lines
394 B
C++
Executable File
#ifndef SIMPLEWEBSERVER_H
|
|
#define SIMPLEWEBSERVER_H
|
|
|
|
#include <QCoreApplication>
|
|
#include <QTcpServer>
|
|
#include <QTcpSocket>
|
|
#include <QDebug>
|
|
|
|
|
|
class SimpleWebServer : public QTcpServer
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SimpleWebServer(QObject *parent = nullptr) : QTcpServer(parent) {}
|
|
|
|
protected:
|
|
void incomingConnection(qintptr socketDescriptor) override;
|
|
private:
|
|
};
|
|
|
|
|
|
#endif // SIMPLEWEBSERVER_H
|