X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpd.h;h=6e37c5226206b3cd8f5cd5b3dcc8ea9b8b0bcecd;hb=96cb6414f85e0ef4d660b7bd56267303e80fcd05;hp=902745a5845b85d5e873914189057846c3a90585;hpb=cf7b9ee186d4ef8e5da0531b75854c97b821be44;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)