X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=server.h;h=0c172b5a306cc70f4fdd225d5708eaee4396b700;hp=372799778f8411f42a95506e49ad0443175dcb8f;hb=7ec54788f88dde7b083ba6cfd30732b32295b54a;hpb=ed218ece51e5be77fd8bd8f014b5f05708e4be5b diff --git a/server.h b/server.h index 3727997..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); @@ -190,7 +193,7 @@ private: // Reads regular data fro ma socket. Returns -1 if the processing // should go to sleep (an error, or no data available yet), otherwise // the number of bytes read. - int read_nontls_data(Client *client, char *buf, size_t max_size); + int read_plain_data(Client *client, char *buf, size_t max_size); // Reads (decrypted) data from a TLS socket. Returns -1 if the processing // should go to sleep (an error, or no data available yet), otherwise