Webserv
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Functions
webserv.hpp File Reference
#include <arpa/inet.h>
#include <dirent.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <stdio.h>
#include <unistd.h>
#include <algorithm>
#include <cctype>
#include <cerrno>
#include <climits>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <iterator>
#include <sstream>
#include <string>
#include <map>
#include <vector>
#include "Client.hpp"
#include "Master.hpp"
#include "Nodes.hpp"
#include "Token.hpp"
#include "Parser.hpp"
#include "Route.hpp"
#include "Server.hpp"
#include "Env.hpp"
Include dependency graph for webserv.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ip_port_s
 

Macros

#define DEBUG   1
 

Typedefs

typedef struct ip_port_s ip_port_t
 
typedef std::map< string, JSONNode * > JSONObject
 
typedef std::vector< JSONNode * > JSONList
 
typedef std::vector< string > vec_string
 

Functions

void * ft_memset (void *b, int c, size_t len)
 
bool isAPort (string str)
 
vec_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)
 
void debug_block (string name, string content)
 

Macro Definition Documentation

◆ DEBUG

#define DEBUG   1

Definition at line 2 of file webserv.hpp.

Typedef Documentation

◆ ip_port_t

typedef struct ip_port_s ip_port_t

◆ JSONList

typedef std::vector<JSONNode *> JSONList

Definition at line 49 of file webserv.hpp.

◆ JSONObject

typedef std::map<string, JSONNode *> JSONObject

Definition at line 48 of file webserv.hpp.

◆ vec_string

typedef std::vector<string> vec_string

Definition at line 50 of file webserv.hpp.

Function Documentation

◆ debug_block()

void debug_block ( string  name,
string  content 
)

Definition at line 3 of file debug.cpp.

Here is the caller graph for this function:

◆ ft_memset()

void * ft_memset ( void *  b,
int  c,
size_t  len 
)

Definition at line 3 of file tools.cpp.

◆ get_ip_port_t() [1/2]

ip_port_t get_ip_port_t ( string  ip,
int  port 
)

Definition at line 51 of file tools.cpp.

◆ get_ip_port_t() [2/2]

ip_port_t get_ip_port_t ( string  listen)

Definition at line 35 of file tools.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getMime()

string getMime ( string  path)

Definition at line 80 of file tools.cpp.

Here is the caller graph for this function:

◆ isAPort()

bool isAPort ( string  str)

Definition at line 12 of file tools.cpp.

Here is the caller graph for this function:

◆ read_file()

string read_file ( string  path)

Definition at line 58 of file tools.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ split()

vec_string split ( string  str,
string  delim 
)

Definition at line 20 of file tools.cpp.

Here is the caller graph for this function: