Empezando proyecto
This commit is contained in:
27
main.cpp
Normal file
27
main.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user