|
ft_irc 1.0
|
Implements the core IRC server functionality. [詳解]
#include "Server.hpp"#include "Channel.hpp"#include "Client.hpp"#include "CommandManager.hpp"#include "Replies.hpp"#include <algorithm>#include <arpa/inet.h>#include <cerrno>#include <cstdlib>#include <cstring>#include <ctime>#include <fcntl.h>#include <iostream>#include <map>#include <netinet/in.h>#include <poll.h>#include <stdexcept>#include <string>#include <sys/socket.h>#include <unistd.h>#include <vector>
マクロ定義 | |
| #define | PING_TIMEOUT 120 |
| #define | PONG_TIMEOUT 20 |
Implements the core IRC server functionality.
This file contains the implementation of the Server class, which handles socket setup, main event loop, client connections, data handling, and command dispatching.
Server.cpp に定義があります。
| #define PING_TIMEOUT 120 |
Server.cpp の 35 行目に定義があります。
| #define PONG_TIMEOUT 20 |
Server.cpp の 36 行目に定義があります。