aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpuws.h
blob: 2852764f731eb4baa3e0826181b3c0ca7abab9b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include <zenhttp/httpserver.h>

#include <zencore/thread.h>

namespace zen {

class HttpUwsServer : public HttpServer
{
    public:
	HttpUwsServer();
	~HttpUwsServer();

	virtual void RegisterService(HttpService& Service) override;
	virtual void Initialize(int BasePort) override;
	virtual void Run(bool TestMode) override;
	virtual void RequestExit() override;

private:
	Event m_ShutdownEvent;
    int m_BasePort = 0;
};

}