aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpuws.h
blob: ec55ae2fd6c08a2bd2016ea15b36e4c7c24824b5 (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
26
27
// Copyright Epic Games, Inc. All Rights Reserved.

#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;
};

}  // namespace zen