feat: pass event to add_to_epoll_list

This commit is contained in:
3lswear
2022-01-29 15:23:54 +03:00
parent 087b16546e
commit 44b70c35a1
2 changed files with 10 additions and 25 deletions

View File

@@ -19,7 +19,7 @@ private:
struct sockaddr_in _addres;
std::string _ip;
std::vector<ServerConfig *> _configs;
/* void add_to_epoll_list(int fd, unsigned int ep_events); */
void add_to_epoll_list(int fd, unsigned int ep_events);
private:
void checkError(int fd, std::string str);
@@ -27,7 +27,6 @@ private:
void sendClient(Client head, int);
void sendResponse(Client head, int);
void setNonBlock(int fd);
void add_to_epoll_list(int fd);
public:
Server();
Server(std::string path);