X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpd.h;fp=httpd.h;h=6e37c5226206b3cd8f5cd5b3dcc8ea9b8b0bcecd;hb=fdcd7fca10dd00bb724bca7d27125d21d2cb5357;hp=902745a5845b85d5e873914189057846c3a90585;hpb=93f17d73eab9e3263c4058a1900a03ce213137a4;p=nageru diff --git a/httpd.h b/httpd.h index 902745a..6e37c52 100644 --- a/httpd.h +++ b/httpd.h @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -78,6 +79,9 @@ private: std::mutex streams_mutex; std::set streams; // Not owned. std::string header; + + // Metrics. + std::atomic metric_num_connected_clients{0}; }; #endif // !defined(_HTTPD_H)