-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.cpp
31 lines (29 loc) · 1.17 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mbari <mbari@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/09 00:36:49 by mbari #+# #+# */
/* Updated: 2022/05/17 17:17:02 by mbari ### ########.fr */
/* */
/* ************************************************************************** */
#include "headers/Server.hpp"
int main(int ac, char **av)
{
if (ac != 3)
{
std::cout << "Usage ./ircserv <port> <password>" << std::endl;
exit(-1);
}
Server srv("DEEZ.NUTS", 10, av[1], av[2]);
try
{
srv.startServer();
}
catch (const std::exception& e)
{
std::cerr << e.what() << '\n';
}
};