still working on integrating the config file stuff
This commit is contained in:
@@ -18,6 +18,21 @@ Webserv::Webserv()
|
||||
|
||||
} */
|
||||
|
||||
Webserv::Webserv(std::vector<ServerConfig>* servers)
|
||||
: _servers(servers)
|
||||
{
|
||||
// talk to luke about what all this does
|
||||
// the Param Constructor might need to do dif stuff
|
||||
std::cout << "Server init\n";
|
||||
|
||||
_epfd = ::epoll_create1(0); // (EPOLL_CLOEXEC) for CGI fork ?
|
||||
if (_epfd == -1)
|
||||
{
|
||||
std::perror("err epoll_create1(): ");
|
||||
throw std::runtime_error("Epoll init");
|
||||
}
|
||||
}
|
||||
|
||||
Webserv::~Webserv()
|
||||
{
|
||||
close(_socket_fd);
|
||||
|
||||
Reference in New Issue
Block a user