]> git.sesse.net Git - nageru/blobdiff - httpd.h
Only bother doing MJPEG encoding if there are any connected clients that want the...
[nageru] / httpd.h
diff --git a/httpd.h b/httpd.h
index 1ff5c51108facf03ca1b0d8fc2f076a63938e595..9cfe1ad87ffd9386ea404b5c44e8519ee7128f64 100644 (file)
--- a/httpd.h
+++ b/httpd.h
@@ -57,6 +57,9 @@ public:
        int64_t get_num_connected_clients() const {
                return metric_num_connected_clients.load();
        }
+       int64_t get_num_connected_multicam_clients() const {
+               return metric_num_connected_multicam_clients.load();
+       }
 
 private:
        static int answer_to_connection_thunk(void *cls, MHD_Connection *connection,
@@ -119,6 +122,7 @@ private:
 
        // Metrics.
        std::atomic<int64_t> metric_num_connected_clients{0};
+       std::atomic<int64_t> metric_num_connected_multicam_clients{0};
 };
 
 #endif  // !defined(_HTTPD_H)