#ifndef _UDPINPUT_H
#define _UDPINPUT_H 1
-#include <pthread.h>
+#include <mutex>
#include <string>
#include <vector>
// 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;
char packet_buf[65536];
// Mutex protecting <stats>.
- mutable pthread_mutex_t stats_mutex;
+ mutable std::mutex stats_mutex;
// The current statistics for this connection. Protected by <stats_mutex>.
InputStats stats;