aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpuws.h
diff options
context:
space:
mode:
Diffstat (limited to 'zenhttp/httpuws.h')
-rw-r--r--zenhttp/httpuws.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/zenhttp/httpuws.h b/zenhttp/httpuws.h
new file mode 100644
index 000000000..ec55ae2fd
--- /dev/null
+++ b/zenhttp/httpuws.h
@@ -0,0 +1,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 \ No newline at end of file