feat: delete when empty

This commit is contained in:
3lswear
2022-02-05 16:47:42 +03:00
parent cb1d839fac
commit e0c0484b60
2 changed files with 18 additions and 9 deletions

View File

@@ -32,6 +32,7 @@ class Server
void setNonBlock(int fd);
void sendData(Client &client, int fd);
void readSocket(Client &client, int fd);
int delete_client(std::map<int,Client *> &map, int fd);
enum e_req_status
{