NetworkedApplications: separate administrative listener
This commit is contained in:
1 parent
6b9ccc5e9a
commit
c6d4a44394
3 files changed
+105
No files matched your search
@@ -95,6 +95,8 @@ namespace NetworkedKv
|
||||
}
|
||||
/// Port the HTTP listener actually bound (0 when not listening).
|
||||
[[nodiscard]] std::uint16_t bound_port() const noexcept;
|
||||
/// Port the administrative listener bound (0 when not listening).
|
||||
[[nodiscard]] std::uint16_t admin_bound_port() const noexcept;
|
||||
|
||||
private:
|
||||
|
||||
@@ -109,6 +111,7 @@ namespace NetworkedKv
|
||||
std::unique_ptr<MemoryKvStore> m_store{};
|
||||
std::unique_ptr<KvApi> m_api{};
|
||||
std::unique_ptr<Void::Net::HttpServer> m_server{};
|
||||
std::unique_ptr<Void::Net::HttpServer> m_admin_server{};
|
||||
ApplicationState m_state{ApplicationState::Created};
|
||||
};
|
||||
} // namespace NetworkedKv
|
||||
Reference in new issue
Block a user