aboutsummaryrefslogtreecommitdiff
path: root/zenserver/zenserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-09-27 17:15:16 +0200
committerStefan Boberg <[email protected]>2021-09-27 17:15:16 +0200
commit7c1e92adea5eb9e492ec186d9913918eaf2c22e4 (patch)
tree1473ce9d0a812f1f3aca76a1e157b508e152ce1f /zenserver/zenserver.cpp
parenthttpsys: Added HTTP_SEND_RESPONSE_FLAG_BUFFER_DATA to response calls which sh... (diff)
downloadzen-7c1e92adea5eb9e492ec186d9913918eaf2c22e4.tar.xz
zen-7c1e92adea5eb9e492ec186d9913918eaf2c22e4.zip
mesh: Hide mesh functionality behind ZEN_ENABLE_MESH define
This enables us to hide it from users until it's actually useful
Diffstat (limited to 'zenserver/zenserver.cpp')
-rw-r--r--zenserver/zenserver.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp
index fe4f41ab5..b45df9fef 100644
--- a/zenserver/zenserver.cpp
+++ b/zenserver/zenserver.cpp
@@ -261,6 +261,7 @@ public:
ZEN_INFO("NOT instantiating structured cache service");
}
+#if ZEN_ENABLE_MESH
if (ServiceConfig.MeshEnabled)
{
StartMesh(BasePort);
@@ -269,6 +270,7 @@ public:
{
ZEN_INFO("NOT starting mesh");
}
+#endif
m_Http = zen::CreateHttpServer();
m_Http->Initialize(BasePort);
@@ -302,11 +304,13 @@ public:
}
}
+#if ZEN_ENABLE_MESH
void StartMesh(int BasePort)
{
ZEN_INFO("initializing mesh discovery");
m_ZenMesh.Start(uint16_t(BasePort));
}
+#endif
void Run()
{