feat: first working

This commit is contained in:
3lswear
2022-01-25 23:21:51 +03:00
parent 53ebb0ddfe
commit 477eb248f4
2 changed files with 88 additions and 27 deletions

View File

@@ -13,12 +13,13 @@ class Server
{
private:
int _port;
int _epolfd;
int _epoll_fd;
int _client;
struct epoll_event _events[MAX_CLIENT];
struct sockaddr_in _addres;
std::string _ip;
std::vector<ServerConfig> _configs;
void add_to_epoll_list(int fd, unsigned int ep_events);
private:
void checkError(int fd, std::string str);
@@ -39,4 +40,4 @@ public:
};
#endif
#endif