X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=udpinput.h;h=4de9788768e71ed1a98bccd844eade0d5b5f05ab;hp=11a369073ad0ce000fdb5ec680f6e7d4b4a159c9;hb=50651c954803c1941e6ad1bb494712891c18f7d2;hpb=bfc1a54cf84bb1784c14bd4f5acbb500460e35b5 diff --git a/udpinput.h b/udpinput.h index 11a3690..4de9788 100644 --- a/udpinput.h +++ b/udpinput.h @@ -1,7 +1,7 @@ #ifndef _UDPINPUT_H #define _UDPINPUT_H 1 -#include +#include #include #include @@ -35,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; @@ -47,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;