implemented processing of incoming client connection

This commit is contained in:
bettercallous
2024-04-09 00:31:39 +00:00
parent c315be1dcd
commit 4c1b396154
6 changed files with 48 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
#include <fcntl.h>
#include <vector>
#include <poll.h>
#include "Client.hpp"
class Server {
private:
@@ -16,6 +17,7 @@ class Server {
static bool _signal;
std::string _password;
std::vector<struct pollfd> _fds;
std::vector<Client> _clients;
public:
Server();
~Server();
@@ -28,6 +30,7 @@ class Server {
void createServerSocket();
void bindServerSocket();
void addPollfd(int fd, short events, short revents);
void handleClientConnection();
};
#endif