X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=serverpool.h;h=c22fb67462644f053da8ca0170fc21afebd1c931;hb=7672c4bac0b8be5b8c5760877c660a2ce9cd1933;hp=30839869013269544bb75fd076c349257d3382e6;hpb=019b96a9cc6fa2902690e98a2aa033517efef3ed;p=cubemap diff --git a/serverpool.h b/serverpool.h index 3083986..c22fb67 100644 --- a/serverpool.h +++ b/serverpool.h @@ -5,6 +5,8 @@ #include +class MarkPool; + // Provides services such as load-balancing between a number of Server instances. class ServerPool { public: @@ -27,6 +29,9 @@ public: void set_header(const std::string &stream_id, const std::string &header); void add_data(const std::string &stream_id, const char *data, size_t bytes); + // Connects the given stream to the given mark pool for all the servers. + void set_mark_pool(const std::string &stream_id, MarkPool *mark_pool); + // Starts all the servers. void run();