blob: 5adf4d5e8d15dd10a8d42225487b85a42f000bc2 (
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
|
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include <zenhttp/httpserver.h>
namespace zen {
struct AsioConfig
{
unsigned int ThreadCount = 0;
bool ForceLoopback = false;
bool IsDedicatedServer = false;
std::string UnixSocketPath;
#if ZEN_USE_OPENSSL
int HttpsPort = 0; // 0 = auto-assign; set CertFile/KeyFile to enable HTTPS
std::string CertFile; // PEM certificate chain file (empty = HTTPS disabled)
std::string KeyFile; // PEM private key file
#endif
};
Ref<HttpServer> CreateHttpAsioServer(const AsioConfig& Config);
bool IsIPv6Capable();
} // namespace zen
|