]> git.sesse.net Git - cubemap/blobdiff - serverpool.h
Add support for setting fwmarks per-connection. Useful for shaping individual streams...
[cubemap] / serverpool.h
index 30839869013269544bb75fd076c349257d3382e6..c22fb67462644f053da8ca0170fc21afebd1c931 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <vector>
 
+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();