X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=server.h;h=84f822d6fa629e66fce7149d6e1c724e10e53291;hp=4b3aab8e9b7250eb47e634805f1978c5a4071ce2;hb=ce0d42a14da5686366d0c73fa9b152e90619ff91;hpb=4ba4a9f0eac9777ef2d5071e980ae0d1ba22d048 diff --git a/server.h b/server.h index 4b3aab8..84f822d 100644 --- 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.