#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 ip_port_s { int fd; string ip; int port; } ip_port_t; class JSONNode; class Env; class Server; class Route; class Master; class Client; typedef std::map< string, JSONNode * > JSONObject; typedef std::vector< JSONNode * > JSONList; // tools void *ft_memset(void *b, int c, size_t len); bool isInt(string str); std::vector< string > split(string str, string delim); ip_port_t get_ip_port_t(string listen); ip_port_t get_ip_port_t(string ip, int port); string getMime(string path); string read_file(string path); // debug void print_block(string name, string content); #include "Client.hpp" #include "Master.hpp" #include "Nodes.hpp" #include "Token.hpp" #include "Parser.hpp" #include "Route.hpp" #include "Server.hpp" #include "Env.hpp"