This commit is contained in:
jcheca
2024-06-04 15:23:43 +02:00
parent 0c3c24a2f1
commit 2e8f987c0f
24 changed files with 42 additions and 17 deletions

View File

@@ -43,6 +43,9 @@ public:
void setAway(bool away);
std::string getKey() const;
void setkey(const std::string &key);
char buffer[1024];
char buffer2[1024];
private:
int _fd;

View File

@@ -42,6 +42,7 @@ class ClientManager
public:
ClientManager(Server *server);
void acceptClient();
void handleClientNext(int client_fd, char * buffer, int bytes_received);
void handleClient(int client_fd);
void removeClient(int client_fd);

View File

@@ -59,7 +59,6 @@ class Server
void broadcast(const std::string &message);
Client* getClientByName(const std::string &name);
Channel* getChannelByName(const std::string &name);
void sendChannelListToClient(Client *client);
void disconnectClient(int clientFd);
bool MatchFd(const pollfd& pfd, int clientFd);
void removePollFd(int clientFd);