X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=server.h;h=0c172b5a306cc70f4fdd225d5708eaee4396b700;hp=d6e6e618c1c296fa10187c7fbd4fedb7712d4f02;hb=7ec54788f88dde7b083ba6cfd30732b32295b54a;hpb=980ac162414c9fce62af4fdb9cfc282865b31572;ds=sidebyside diff --git a/server.h b/server.h index d6e6e61..0c172b5 100644 --- a/server.h +++ b/server.h @@ -57,6 +57,9 @@ public: const std::string &http_header, const std::string &stream_header); + // Sets the given stream as unavailable (will always return 503 to new clients). + void set_unavailable(int stream_index); + // 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);