#ifndef THREADDATA_H #define THREADDATA_H #include #include "utils.h" #include #include #include "client.h" #include class Client; typedef std::shared_ptr Client_p; class ThreadData { std::map clients_by_fd; public: std::thread thread; int threadnr = 0; int epollfd = 0; int event_fd = 0; ThreadData(int threadnr); void giveClient(Client_p client); Client_p getClient(int fd); void removeClient(Client_p client); }; typedef std::shared_ptr ThreadData_p; #endif // THREADDATA_H