X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=serverpool.h;h=c22fb67462644f053da8ca0170fc21afebd1c931;hp=30839869013269544bb75fd076c349257d3382e6;hb=462cb16514a2b691ae4d4b76125b42fda83df712;hpb=9f49ea1bf5d45f57c351601a80d543056185924c 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();