#pragma once #include #include #include #include class NetworkThread : public QObject { Q_OBJECT private: std::set received; zmq::context_t context; zmq::socket_t *socket; std::set accepted_flows; void connect(); void disconnect(); void reconnect(); public: explicit NetworkThread(QObject *parent = nullptr); public slots: void process(); signals: void finished(); void error(QString err); void httpMessage(http::Flow flow); };