mirror of
https://github.com/Ladebeze66/ft_irc.git
synced 2026-11-09 13:17:13 +01:00
modif
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user