Client class now has getters and setters, and server has 4 functions for main loop

This commit is contained in:
aortigos
2026-04-16 22:28:47 +02:00
parent b925cc74c7
commit 00a08b4f30
5 changed files with 139 additions and 56 deletions

View File

@@ -31,6 +31,27 @@ class Client
Client();
Client(int fd);
~Client();
// Getters
int getFd() const;
std::string getNick() const;
std::string getUsername() const;
std::string getRealname() const;
std::string getBuffer() const;
bool isAuthenticated() const;
bool isRegistered() const;
// Seters
void setNick(std::string nick);
void setUsername(std::string username);
void setRealname(std::string realname);
void setAuthenticated(bool value);
void setRegistered(bool value);
void appendBuffer(std::string data);
void clearBuffer();
};
#endif