X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=httpd.h;fp=httpd.h;h=630b0c38bfefb53205050e4eb9563e06455ba69d;hb=70e175fb0deb01e4664213686491c49bff85faf6;hp=6e37c5226206b3cd8f5cd5b3dcc8ea9b8b0bcecd;hpb=fa54f2630c56a1df0046923d6a77b1bd58abf240;p=nageru diff --git a/httpd.h b/httpd.h index 6e37c52..630b0c3 100644 --- a/httpd.h +++ b/httpd.h @@ -28,6 +28,9 @@ public: void start(int port); void add_data(const char *buf, size_t size, bool keyframe); + int64_t get_num_connected_clients() const { + return metric_num_connected_clients.load(); + } private: static int answer_to_connection_thunk(void *cls, MHD_Connection *connection,