makefile compile both luke and hugo files

This commit is contained in:
hugogogo
2022-07-22 23:37:30 +02:00
12 changed files with 239 additions and 658 deletions

24
srcs_hugo/hugo_main.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include <iostream>
#include <exception>
#include <stdexcept>
#include "hugo_Webserv.hpp"
int main(void)
{
try
{
Webserv serv;
// https://security.stackexchange.com/questions/169213/how-to-chose-a-port-to-run-an-application-on-localhost
serv.bind(4040);
serv.listen(20);
serv.start(3 * 60 * 1000, 8192);
}
catch (std::exception& e)
{
std::cout << e.what() << '\n';
}
return (0);
}