clean webserv includes
This commit is contained in:
@@ -2,32 +2,31 @@
|
|||||||
#ifndef WEBSERV_HPP
|
#ifndef WEBSERV_HPP
|
||||||
# define WEBSERV_HPP
|
# define WEBSERV_HPP
|
||||||
|
|
||||||
# include <iostream> // cout, cin
|
|
||||||
# include <string>
|
|
||||||
# include <map>
|
# include <map>
|
||||||
# include <vector>
|
# include <vector>
|
||||||
# include <cerrno> // errno
|
|
||||||
# include <cstdio> // perror
|
|
||||||
# include <exception>
|
# include <exception>
|
||||||
# include <stdexcept>
|
# include <stdexcept>
|
||||||
# include <unistd.h> // close
|
# include <string>
|
||||||
|
# include <sstream> // stringstream
|
||||||
|
# include <cerrno> // errno
|
||||||
|
# include <cstdio> // perror
|
||||||
|
# include <unistd.h> // close, access
|
||||||
|
# include <iostream> // cout, cin
|
||||||
# include <cstring> // memset
|
# include <cstring> // memset
|
||||||
|
|
||||||
# include <sys/socket.h> // socket, accept, listen, send, recv, bind, connect, setsockopt, getsockname
|
# include <sys/socket.h> // socket, accept, listen, send, recv, bind, connect, setsockopt, getsockname
|
||||||
# include <netinet/in.h> // sockaddr_in
|
# include <netinet/in.h> // sockaddr_in
|
||||||
// # include <netinet/ip.h> // usefull for what ?
|
// # include <netinet/ip.h> // usefull for what ?
|
||||||
# include <arpa/inet.h> // htonl, htons, ntohl, ntohs, inet_addr
|
# include <arpa/inet.h> // htonl, htons, ntohl, ntohs, inet_addr
|
||||||
|
|
||||||
# include <sys/epoll.h> // epoll
|
# include <sys/epoll.h> // epoll
|
||||||
# include <fcntl.h> // fcntl
|
# include <fcntl.h> // fcntl
|
||||||
|
# include <sys/wait.h> // waitpid
|
||||||
|
# include <csignal> // signal
|
||||||
|
# include <cstdlib> // itoa
|
||||||
|
char *ft_itoa(int n);
|
||||||
|
# include <fstream> // ifstream
|
||||||
|
|
||||||
# include "Client.hpp"
|
# include "Client.hpp"
|
||||||
# include "Server.hpp"
|
# include "Server.hpp"
|
||||||
# include <csignal> // signal
|
|
||||||
# include <cstdlib> // itoa
|
|
||||||
# include <fstream> // ifstream
|
|
||||||
char *ft_itoa(int n);
|
|
||||||
# include <unistd.h> // access
|
|
||||||
|
|
||||||
extern bool g_run;
|
extern bool g_run;
|
||||||
extern int g_last_signal;
|
extern int g_last_signal;
|
||||||
|
|||||||
Reference in New Issue
Block a user