]> git.sesse.net Git - cubemap/blobdiff - client.h
Support UDP packets larger than 4 kB.
[cubemap] / client.h
index db1fea51c69ae090f8a1d70db7b75aaf6f31f62d..c73810df5e726297e8258c3997df3498fe32e7c7 100644 (file)
--- a/client.h
+++ b/client.h
@@ -12,7 +12,9 @@ struct Stream;
 
 // Digested statistics for writing to logs etc.
 struct ClientStats {
-       std::string stream_id;
+       std::string url;
+       int sock;
+       int fwmark;
        std::string remote_addr;
        time_t connect_time;
        size_t bytes_sent;
@@ -21,7 +23,6 @@ struct ClientStats {
 };
 
 struct Client {
-       Client() {}
        Client(int sock);
 
        // Serialization/deserialization.
@@ -49,7 +50,7 @@ struct Client {
 
        // What stream we're connecting to; parsed from <request>.
        // Not relevant for READING_REQUEST.
-       std::string stream_id;
+       std::string url;
        Stream *stream;
 
        // The header we want to send. This is nominally a copy of Stream::header,