mirror of
https://github.com/KeyZox71/webserv.git
synced 2025-05-11 01:48:47 +02:00
「🏗️」 wip(includes): very very wip of the headers (this commit should be deleted later)
This commit is contained in:
17
src/main.cpp
17
src/main.cpp
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user