aboutsummaryrefslogtreecommitdiff
path: root/zenutil/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-08-09 16:31:55 +0200
committerStefan Boberg <[email protected]>2021-08-09 16:31:55 +0200
commit5e12cf0c02b2e6687a246f7a5ae5fe2b6c62f079 (patch)
treea19c21ea012bd61921165635990a94802c8aabc3 /zenutil/include
parentBasic implementation of zen top/ps (currently identical but won't be) functio... (diff)
downloadzen-5e12cf0c02b2e6687a246f7a5ae5fe2b6c62f079.tar.xz
zen-5e12cf0c02b2e6687a246f7a5ae5fe2b6c62f079.zip
Added ZenServerInstance::AttachToRunningServer
Diffstat (limited to 'zenutil/include')
-rw-r--r--zenutil/include/zenserverprocess.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/zenutil/include/zenserverprocess.h b/zenutil/include/zenserverprocess.h
index 60ed273cb..d2101c8e8 100644
--- a/zenutil/include/zenserverprocess.h
+++ b/zenutil/include/zenserverprocess.h
@@ -49,6 +49,7 @@ struct ZenServerInstance
}
void SpawnServer(int BasePort = 0);
+ void AttachToRunningServer(int BasePort = 0);
private:
ZenServerEnvironment& m_Env;
@@ -87,12 +88,12 @@ public:
static_assert(sizeof(ZenServerEntry) == 32);
- void Initialize();
- [[nodiscard]] bool InitializeReadOnly();
- ZenServerEntry* Lookup(int ListenPort);
- ZenServerEntry* Register(int ListenPort);
- void Sweep();
- void Snapshot(std::function<void(const ZenServerEntry&)>&& Callback);
+ void Initialize();
+ [[nodiscard]] bool InitializeReadOnly();
+ [[nodiscard]] ZenServerEntry* Lookup(int ListenPort);
+ ZenServerEntry* Register(int ListenPort);
+ void Sweep();
+ void Snapshot(std::function<void(const ZenServerEntry&)>&& Callback);
private:
void* m_hMapFile = nullptr;