X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=server.h;fp=server.h;h=4ec908b039c86b24db7b8b252d27a71515a71c60;hp=da2076498f010785ae8d1a8954dc5d5920a7d83b;hb=58dd753c464d917dc446e2cbb4c01fd750d4eb87;hpb=014604812e65d325316778ac98ac7c422226fce8 diff --git a/server.h b/server.h index da20764..4ec908b 100644 --- a/server.h +++ b/server.h @@ -6,11 +6,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include "tlse.h" @@ -106,13 +106,13 @@ private: std::vector> streams; // Map from URL to index into . - std::map stream_url_map, stream_hls_url_map; + std::unordered_map stream_url_map, stream_hls_url_map; // Map from URL to CORS Allow-Origin header (or empty string). - std::map ping_url_map; + std::unordered_map ping_url_map; // Map from file descriptor to client. - std::map clients; + std::unordered_map clients; // A list of all clients, ordered by the time they connected (first element), // and their file descriptor (second element). It is ordered by connection time @@ -132,7 +132,7 @@ private: epoll_event events[EPOLL_MAX_EVENTS]; // For each TLS-enabled acceptor, our private server context for its key pair. - std::map tls_server_contexts; + std::unordered_map tls_server_contexts; // The actual worker thread. virtual void do_work();