adding first tests with cgi

This commit is contained in:
hugogogo
2022-07-27 20:47:13 +02:00
parent d4a14798f4
commit 8477669e6f
9 changed files with 146 additions and 14 deletions

View File

@@ -4,24 +4,23 @@
# include <string>
# include <map>
# include <cerrno> // errno
# include <cstdio> // perror
# include <cerrno> // errno
# include <cstdio> // perror
# include <exception>
# include <stdexcept>
# include <unistd.h> // close
# include <iostream> // cout, cin
# include <cstring> // memset
# include <sys/socket.h> // socket, accept, listen, send, recv, bind, connect, setsockopt, getsockname
# include <netinet/in.h> // sockaddr_in
// # include <netinet/ip.h> // usefull for what ?
# include <arpa/inet.h> // htonl, htons, ntohl, ntohs, inet_addr
# include <sys/epoll.h> // epoll
# include <fcntl.h> // fcntl
# include <unistd.h> // close
# include <iostream> // cout, cin
# include <cstring> // memset
# include <sys/socket.h> // socket, accept, listen, send, recv, bind, connect, setsockopt, getsockname
# include <netinet/in.h> // sockaddr_in
# include <arpa/inet.h> // htonl, htons, ntohl, ntohs, inet_addr
# include <sys/epoll.h> // epoll
# include <fcntl.h> // fcntl
# include <sys/wait.h> // waitpid
# include <sstream> // stringstream
#define BUFSIZE 8192
#define TIMEOUT 3 * 60 * 1000
#define TIMEOUT 10 * 1000
#define MAX_EVENTS 42 // arbitrary
#define MSG_TEST "Le Webserv / 20 =D\n"
#define MSG_BOUNCE "bounced properly ;)\n" // placeholder