🏗️」 wip(includes): very very wip of the headers (this commit should be deleted later)

This commit is contained in:
y-syo
2025-02-11 13:52:45 +01:00
parent 935de681d9
commit 3c1eb1ec99
9 changed files with 217 additions and 54 deletions

View File

@ -6,20 +6,11 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/03 15:45:07 by mmoussou #+# #+# */
/* Updated: 2025/02/03 18:36:29 by mmoussou ### ########.fr */
/* Updated: 2025/02/11 13:39:14 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
#include <iostream>
#include <string>
#include <cstring>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <fstream>
#include <csignal>
#include <cstdlib>
#include "webserv.hpp"
#include "requests/default.hpp"
#define PORT 8080
@ -39,7 +30,7 @@ int main() {
std::cerr << "Error registering signal handler!" << std::endl;
return 1;
}
/*
// create a socket
server_socket = socket(AF_INET, SOCK_STREAM, 0);
if (server_socket == -1) {
@ -110,6 +101,6 @@ int main() {
close(client_socket);
}
close(server_socket);
close(server_socket);*/
return 0;
}