diff options
| author | zousar <[email protected]> | 2022-01-27 01:01:05 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-01-27 09:01:05 +0100 |
| commit | cf38d96543b2086a863ef4823ee769ec45cc45a4 (patch) | |
| tree | 1c5c56053f43271398d9f9a469383f29df76c570 /zenhttp/httpsys.h | |
| parent | Implement SkipData,QueryLocal,StoreLocal for HandleRpcGetCacheRecords (#41) (diff) | |
| download | zen-cf38d96543b2086a863ef4823ee769ec45cc45a4.tar.xz zen-cf38d96543b2086a863ef4823ee769ec45cc45a4.zip | |
Handle HTTP port collisions when initializing server (#40)
Diffstat (limited to 'zenhttp/httpsys.h')
| -rw-r--r-- | zenhttp/httpsys.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zenhttp/httpsys.h b/zenhttp/httpsys.h index 06bad99c3..0453b8740 100644 --- a/zenhttp/httpsys.h +++ b/zenhttp/httpsys.h @@ -41,7 +41,7 @@ public: // HttpServer interface implementation - virtual void Initialize(int BasePort) override; + virtual int Initialize(int BasePort) override; virtual void Run(bool TestMode) override; virtual void RequestExit() override; virtual void RegisterService(HttpService& Service) override; @@ -52,7 +52,7 @@ public: inline bool IsAsyncResponseEnabled() const { return m_IsAsyncResponseEnabled; } private: - void InitializeServer(int BasePort); + int InitializeServer(int BasePort); void Cleanup(); void StartServer(); |