X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=serverpool.h;fp=serverpool.h;h=87f3f8e4d1837054a036dc0b96e66767f8014312;hp=d257a86c48f7dc1186c12f3e285cce3371f5af28;hb=26fe3ab755034ea3be8321ec0af548670f8c3bd8;hpb=a0629a862bbac969ff858d8b4c3e78bd299aa721 diff --git a/serverpool.h b/serverpool.h index d257a86..87f3f8e 100644 --- a/serverpool.h +++ b/serverpool.h @@ -2,6 +2,7 @@ #define _SERVERPOOL_H 1 #include +#include #include #include @@ -20,7 +21,6 @@ struct sockaddr_in6; class ServerPool { public: ServerPool(int num_servers); - ~ServerPool(); // Fills streams() and clients(). CubemapStateProto serialize(); @@ -75,7 +75,7 @@ public: std::vector get_client_stats() const; private: - Server *servers; + std::unique_ptr servers; int num_servers, clients_added; // Our indexing is currently rather primitive; every stream_index in @@ -83,7 +83,7 @@ private: // has exactly one copy), and after that, it's mapping directly into // . int num_http_streams; - std::vector udp_streams; + std::vector> udp_streams; ServerPool(const ServerPool &); };