diff options
| author | Dan Engelbrecht <[email protected]> | 2025-12-05 13:40:08 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-12-05 13:40:08 +0100 |
| commit | 4c0e72df77ea663a92818de225735bc171074486 (patch) | |
| tree | 0671f41f13de2b4a0bc12ee8fc31bd38cd6d4122 /src/zenhttp/servers/httpasio.h | |
| parent | catch exception leaks in windows thread pool (#677) (diff) | |
| download | zen-4c0e72df77ea663a92818de225735bc171074486.tar.xz zen-4c0e72df77ea663a92818de225735bc171074486.zip | |
implement --dedicated option on asio http server (#679)
* implement --dedicated option on asio http server
Diffstat (limited to 'src/zenhttp/servers/httpasio.h')
| -rw-r--r-- | src/zenhttp/servers/httpasio.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/zenhttp/servers/httpasio.h b/src/zenhttp/servers/httpasio.h index 36f988a65..c483dfc28 100644 --- a/src/zenhttp/servers/httpasio.h +++ b/src/zenhttp/servers/httpasio.h @@ -6,6 +6,13 @@ namespace zen { -Ref<HttpServer> CreateHttpAsioServer(bool ForceLoopback, unsigned int ThreadCount); +struct AsioConfig +{ + unsigned int ThreadCount = 0; + bool ForceLoopback = false; + bool IsDedicatedServer = false; +}; + +Ref<HttpServer> CreateHttpAsioServer(const AsioConfig& Config); } // namespace zen |