/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_irc.hpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: apommier +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/12/01 17:27:37 by apommier #+# #+# */ /* Updated: 2022/12/06 22:06:07 by apommier ### ########.fr */ /* */ /* ************************************************************************** */ #pragma once #include //socket function #include #include //std::string #include //errno #include //std::cout | cerr #include //struct socket #include //epoll ensemble #include //close() /* ************************************************************************** */ /* *********************************UTILS************************************ */ /* ************************************************************************** */ void ft_error(std::string str); void close_fd(int fd); /* ************************************************************************** */ /* ******************************START SERVER******************************** */ /* ************************************************************************** */ void initialize(char **av); //1st void start_loop(int epollFd, int oldSock, int newSock); //3rd /* ************************************************************************** */ /* *****************************EPOLL UTILITY******************************** */ /* ************************************************************************** */ void epoll_add(int epollFd, int fd); int epoll_start(); //2nd