X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=server.h;h=2fe4f15184a62699c6bcb8c89606ffa95f9559e8;hp=6007626dd57d5e14953b4f9b905e94fbc08d74c9;hb=061988af511f42da3cd584b4d983177504ddc177;hpb=1135808bf9df44b879994e6dac07a31eb78c2fdb diff --git a/server.h b/server.h index 6007626..2fe4f15 100644 --- a/server.h +++ b/server.h @@ -57,8 +57,8 @@ public: // These should not be called while running, since that would violate // threading assumptions (ie., that epoll is only called from one thread // at the same time). - CubemapStateProto serialize(); - void add_client_from_serialized(const ClientProto &client); + CubemapStateProto serialize(std::unordered_map *short_response_pool); + void add_client_from_serialized(const ClientProto &client, const std::vector> &short_responses); int add_stream(const std::string &url, size_t bytes_received, size_t prebuffering_bytes, Stream::Encoding encoding, Stream::Encoding src_encoding); int add_stream_from_serialized(const StreamProto &stream, int data_fd); int lookup_stream_by_url(const std::string &url) const;