- void add_stream(const std::string &stream_id, size_t bytes_received, Stream::Encoding encoding);
- void add_stream_from_serialized(const StreamProto &stream, int data_fd);
- void set_backlog_size(const std::string &stream_id, size_t new_size);
- void set_encoding(const std::string &stream_id, Stream::Encoding encoding);
+ int add_stream(const std::string &url, size_t bytes_received, Stream::Encoding encoding);
+ int add_stream_from_serialized(const StreamProto &stream, int data_fd);
+ int lookup_stream_by_url(const std::string &url) const;
+ void set_backlog_size(int stream_index, size_t new_size);
+ void set_encoding(int stream_index, Stream::Encoding encoding);