lots of log message and fixed bad_file_descriptor issue

This commit is contained in:
hugogogo
2022-08-22 01:50:28 +02:00
parent 469eca8aa9
commit 5225e3258b
18 changed files with 186 additions and 112 deletions

View File

@@ -15,6 +15,7 @@
# include <cerrno> // errno
# include <unistd.h> // close, access
# include <iostream> // cout, cin
# include <iomanip> // setw
# include <cstring> // memset
# include <sys/socket.h> // socket, accept, listen, send, recv, bind, connect, setsockopt, getsockname
# include <arpa/inet.h> // htonl, htons, ntohl, ntohs, inet_addr, inet_ntoa
@@ -34,6 +35,7 @@
# include "autoindex.hpp"
# include "colors.h"
extern family_state family;
extern bool g_run;
extern int g_last_signal;
void signal_handler(int signum);