X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=udpinput.h;h=4de9788768e71ed1a98bccd844eade0d5b5f05ab;hp=caff008793842cdce2b601e10ea8c61041ae889e;hb=58dd753c464d917dc446e2cbb4c01fd750d4eb87;hpb=bd694fdd3dd1417399aecead2c8b91fc4fe95ce8 diff --git a/udpinput.h b/udpinput.h index caff008..4de9788 100644 --- a/udpinput.h +++ b/udpinput.h @@ -1,6 +1,7 @@ #ifndef _UDPINPUT_H #define _UDPINPUT_H 1 +#include #include #include @@ -34,7 +35,7 @@ private: // The URL and its parsed components. std::string url; - std::string host, port, path; + std::string user, host, port, path; // The HTTP header we're sending to clients. std::string http_header; @@ -46,7 +47,7 @@ private: char packet_buf[65536]; // Mutex protecting . - mutable pthread_mutex_t stats_mutex; + mutable std::mutex stats_mutex; // The current statistics for this connection. Protected by . InputStats stats;