#pragma once #include "webserv.hpp" class Server : public Route { string _name; std::map< string, Route * > _routes; public: std::vector< ip_port_t > _listens; Server(JSONNode *server); ~Server(void); Master *create_master(string str); std::vector< Master * > get_sockets(JSONNode *server); Route *choose_route(string uri); string getName(void); };