+void ServerPool::add_data(int stream_index, const char *data, size_t bytes, uint16_t metacube_flags)
+{
+ assert(stream_index >= 0 && stream_index < ssize_t(num_http_streams + udp_streams.size()));
+
+ if (stream_index >= num_http_streams) {
+ // UDP stream.
+ udp_streams[stream_index - num_http_streams]->send(data, bytes);
+ return;
+ }
+
+ // HTTP stream.
+ for (int i = 0; i < num_servers; ++i) {
+ servers[i].add_data_deferred(stream_index, data, bytes, metacube_flags);
+ }
+}
+
+void ServerPool::add_gen204(const std::string &url, const std::string &allow_origin)
+{
+ for (int i = 0; i < num_servers; ++i) {
+ servers[i].add_gen204(url, allow_origin);
+ }
+}
+
+void ServerPool::create_tls_context_for_acceptor(const Acceptor *acceptor)