X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=serverpool.h;h=9cac26e47133f270e91c040afa3091420433f387;hp=a70d5429221af06f82049e8c098d93e52c33cbc9;hb=ed218ece51e5be77fd8bd8f014b5f05708e4be5b;hpb=20e85bd6901355cc40a6cfb4c0deb7232d9aa63f diff --git a/serverpool.h b/serverpool.h index a70d542..9cac26e 100644 --- a/serverpool.h +++ b/serverpool.h @@ -29,6 +29,9 @@ public: void add_client(int sock, Acceptor *acceptor); void add_client_from_serialized(const ClientProto &client, const std::vector> &short_responses); + // Picks a srever (round-robin) and adds the given HLS zombie to it. + void add_hls_zombie_from_serialized(const HLSZombieProto &client); + // Adds the given stream to all the servers. Returns the stream index. int add_stream(const std::string &url, const std::string &hls_url, @@ -95,6 +98,7 @@ public: void stop(); std::vector get_client_stats() const; + std::vector get_hls_zombies() const; private: std::unique_ptr servers;