basic tcp connection.

This commit is contained in:
LuckyLaszlo
2022-07-12 00:51:43 +02:00
parent 8a7204b7a5
commit a9b1843eba
6 changed files with 149 additions and 20 deletions

View File

@@ -1 +1,22 @@
#include <iostream>
#include <exception>
#include <stdexcept>
#include <Webserv.hpp>
int main(void)
{
try
{
Webserv serv;
serv.bind(80);
serv.listen(512); // 512 max connections arbitrary
serv.start();
}
catch (std::exception& e)
{
std::cout << e.what() << '\n';
}
return (0);
}