Client class now has getters and setters, and server has 4 functions for main loop
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user