X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=server.h;h=523f5c55f376eed2ca9becf25a15c60a9172ba70;hb=8f44468bfe4a1d1607b0ab7044c3071605ae1fa7;hp=2d227b6e1797ec331c7a6e966ec412d5f6c7a79b;hpb=340489a8e732519182ecbc92116e7dfa2997143c;p=cubemap diff --git a/server.h b/server.h index 2d227b6..523f5c5 100644 --- a/server.h +++ b/server.h @@ -12,6 +12,7 @@ #include #include "client.h" +#include "stream.h" #include "thread.h" class ClientProto; @@ -34,7 +35,9 @@ public: std::vector get_client_stats() const; // Set header (both HTTP header and any stream headers) for the given stream. - void set_header(const std::string &stream_id, const std::string &header); + void set_header(const std::string &stream_id, + const std::string &http_header, + const std::string &stream_header); // Set that the given stream should use the given mark pool from now on. // NOTE: This should be set before any clients are connected! @@ -51,9 +54,10 @@ public: // at the same time). CubemapStateProto serialize(); void add_client_from_serialized(const ClientProto &client); - void add_stream(const std::string &stream_id, size_t bytes_received); + void add_stream(const std::string &stream_id, size_t bytes_received, Stream::Encoding encoding); void add_stream_from_serialized(const StreamProto &stream); void set_backlog_size(const std::string &stream_id, size_t new_size); + void set_encoding(const std::string &stream_id, Stream::Encoding encoding); private: // Mutex protecting queued_data only. Note that if you want to hold both this