]> git.sesse.net Git - cubemap/blobdiff - server.h
Support SO_MAX_PACING_RATE.
[cubemap] / server.h
index 4b3aab8e9b7250eb47e634805f1978c5a4071ce2..84f822d6fa629e66fce7149d6e1c724e10e53291 100644 (file)
--- a/server.h
+++ b/server.h
@@ -43,6 +43,10 @@ public:
        // NOTE: This should be set before any clients are connected!
        void set_mark_pool(int stream_index, MarkPool *mark_pool);
 
+       // Set that the given stream should use the given max pacing rate from now on.
+       // NOTE: This should be set before any clients are connected!
+       void set_pacing_rate(int stream_index, uint32_t pacing_rate);
+
        // These will be deferred until the next time an iteration in do_work() happens,
        // and the order between them are undefined.
        // XXX: header should ideally be ordered with respect to data.