ok we started moving stuff over but for now it's not all working yet

This commit is contained in:
Me
2022-07-25 03:10:42 +02:00
parent 72d9709ca7
commit b9ccf09089
5 changed files with 531 additions and 0 deletions

View File

@@ -11,6 +11,8 @@
# include <unistd.h> // close
# include <iostream> // cout, cin
# include <cstring> // memset
# include <fstream>
# include <sstream>
# include <sys/socket.h> // socket, accept, listen, send, recv, bind, connect, setsockopt, getsockname
# include <netinet/in.h> // sockaddr_in
@@ -39,6 +41,7 @@ class Webserv
private:
int _socket_fd; // TODO: replace with vector of "Server" struct
std::vector<ServerConfig> _servers;
int _epfd;
// WIP global buffer. Need one variable set per "Client"