diff options
Diffstat (limited to 'zenserver/config.h')
| -rw-r--r-- | zenserver/config.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/zenserver/config.h b/zenserver/config.h index fb866f134..e33b27962 100644 --- a/zenserver/config.h +++ b/zenserver/config.h @@ -9,21 +9,20 @@ struct ZenServerOptions { bool IsDebug = false; bool IsTest = false; - int BasePort = 1337; // Service listen port (used for both UDP and TCP) - int OwnerPid = 0; // Parent process id (zero for standalone) - std::string ChildId; // Id assigned by parent process (used for lifetime management) - std::string LogId; // Id for tagging log output - std::filesystem::path DataDir; // Root directory for state (used for testing) - std::string FlockId; // Id for grouping test instances into sets - bool EnableMesh = false; // Experimental p2p mesh discovery + int BasePort = 1337; // Service listen port (used for both UDP and TCP) + int OwnerPid = 0; // Parent process id (zero for standalone) + std::string ChildId; // Id assigned by parent process (used for lifetime management) + std::string LogId; // Id for tagging log output + std::filesystem::path DataDir; // Root directory for state (used for testing) }; -void ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions); - struct ZenServiceConfig { - bool LegacyCacheEnabled = false; - bool StructuredCacheEnabled = true; + bool LegacyCacheEnabled = false; + bool StructuredCacheEnabled = true; + bool MeshEnabled = false; // Experimental p2p mesh discovery + std::string FlockId; // Id for grouping test instances into sets }; +void ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions, ZenServiceConfig& ServiceConfig); void ParseServiceConfig(const std::filesystem::path& DataRoot, ZenServiceConfig& ServiceConfig); |