Webserv
Loading...
Searching...
No Matches
Functions
tools.cpp File Reference
#include "webserv.hpp"
Include dependency graph for tools.cpp:

Go to the source code of this file.

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 read_file (string path)
 
string getMime (string path)
 

Function Documentation

◆ 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: