#pragma once #define DEBUG 0 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using std::cout; using std::strerror; using std::string; typedef struct listen_s { int fd; string ip; int port; } listen_t; class JSONNode; class Env; class Server; class Route; class Master; class Client; typedef std::map< string, JSONNode * > JSONObject; typedef std::vector< JSONNode * > JSONList; void *ft_memset(void *b, int c, size_t len); bool isInt(string str); std::vector< string > split(string str, string delim); listen_t get_listen_t(string listen); listen_t get_listen_t(string ip, int port); string getMime(string path); string read_file(string path); #include "Client.hpp" #include "Master.hpp" #include "Nodes.hpp" #include "Token.hpp" #include "Parser.hpp" #include "Route.hpp" #include "Server.hpp" #include "Env.hpp"