diff options
Diffstat (limited to 'src/zenutil/include')
| -rw-r--r-- | src/zenutil/include/zenutil/zenserverprocess.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/zenutil/include/zenutil/zenserverprocess.h b/src/zenutil/include/zenutil/zenserverprocess.h index 8aa4a2773..6295ab5c5 100644 --- a/src/zenutil/include/zenutil/zenserverprocess.h +++ b/src/zenutil/include/zenutil/zenserverprocess.h @@ -67,9 +67,10 @@ struct ZenServerInstance ~ZenServerInstance(); int Shutdown(); - bool SignalShutdown(); + bool SignalShutdown(std::error_code& OutEc); uint16_t WaitUntilReady(); [[nodiscard]] bool WaitUntilReady(int Timeout); + [[nodiscard]] bool WaitUntilExited(int Timeout, std::error_code& OutEc); void EnableTermination() { m_Terminate = true; } void DisableShutdownOnDestroy() { m_ShutdownOnDestroy = false; } void Detach(); @@ -102,6 +103,8 @@ struct ZenServerInstance SpawnServer(BasePort, AdditionalServerArgs, WaitTimeoutMs); } + void SpawnServer(std::string_view ServerArgs, bool OpenConsole, int WaitTimeoutMs); + void AttachToRunningServer(int BasePort = 0); std::string GetBaseUri() const; uint16_t GetBasePort() const { return m_BasePort; } |