X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=serverpool.h;h=13211f918731a1084ffea3429ab1deb82e081cca;hp=5b7fca3d5e5ebcd2a67e3db34bb6445027d1169b;hb=848ee1720c11f88e54e38f0a9c51f70f7ca8dd77;hpb=7b3d494100ef1063578b1ef76818baee4ab53ada diff --git a/serverpool.h b/serverpool.h index 5b7fca3..13211f9 100644 --- a/serverpool.h +++ b/serverpool.h @@ -12,7 +12,9 @@ class MarkPool; class Server; +class UDPStream; struct ClientStats; +struct sockaddr_in6; // Provides services such as load-balancing between a number of Server instances. class ServerPool { @@ -39,7 +41,7 @@ public: void set_header(int stream_index, const std::string &http_header, const std::string &stream_header); - void add_data(int stream_index, const char *data, size_t bytes); + void add_data(int stream_index, const char *data, size_t bytes, StreamStartSuitability suitable_for_stream_start); // Connects the given stream to the given mark pool for all the servers. void set_mark_pool(int stream_index, MarkPool *mark_pool);