MythTV master
mythhttpthread.h
Go to the documentation of this file.
1#ifndef MYTHHTTPTHREAD_H
2#define MYTHHTTPTHREAD_H
3
4// MythTV
7
11
12class MythHTTPThread : public MThread
13{
14 public:
16 const QString& ThreadName, qintptr Socket, bool Ssl);
17 void Quit();
18
19 protected:
20 void run() override;
21
22 private:
23 Q_DISABLE_COPY(MythHTTPThread)
24
27 qintptr m_socketFD { 0 };
29 bool m_ssl { false };
30};
31
32#endif
This is a wrapper around QThread that does several additional things.
Definition: mthread.h:49
MythHTTPConfig m_config
void Quit()
Tell the socket to complete and disconnect.
MythHTTPServer * m_server
MythHTTPThread(MythHTTPServer *Server, MythHTTPConfig Config, const QString &ThreadName, qintptr Socket, bool Ssl)
void run() override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
qintptr m_socketFD
MythHTTPSocket * m_socket