Empezando proyecto

This commit is contained in:
aortigos
2026-04-14 01:01:01 +02:00
commit b39245ddf1
4 changed files with 161 additions and 0 deletions

27
main.cpp Normal file
View File

@@ -0,0 +1,27 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/04/13 22:31:53 by aortigos #+# #+# */
/* Updated: 2026/04/14 00:47:23 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#include "Server/Server.hpp"
int main(int argc, char **argv)
{
if (argc != 2)
{
std::cout << "Port is needed" << std::endl;
return (1);
}
Server sv(atoi(argv[1]));
sv.run();
return (0);
}