/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/12/01 17:27:33 by apommier #+# #+# */ /* Updated: 2023/03/03 22:57:10 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ #include "../includes/ft_irc.hpp" int main(int ac, char **av) { if (!(ac == 3)) { //ft_error("wrong number of arguments\nFORMAT: ./ircserv "); std::cout << "wrong number of arguments\nFORMAT: ./ircserv \n"; exit(1); } std::cout << "============Homemade IRC Server start============" << std::endl; try { initialize(av); } // catch() // { // std::cout << "Fatal error causing the end of the program :/\n"; // } catch(std::exception &e) { if (errno) std::cerr << "Fatal error: " << strerror(errno) << std::endl; } return (0); }