summaryrefslogtreecommitdiffstats
path: root/src/client/user.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/user.hpp')
-rw-r--r--src/client/user.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/user.hpp b/src/client/user.hpp
index 8e2218a..1ae8427 100644
--- a/src/client/user.hpp
+++ b/src/client/user.hpp
@@ -14,12 +14,11 @@ class Client {
bool exit_flag;
- Client(int i_fd)
- : fd(i_fd), in_buf_used(0), out_buf_used(0) { }
+ Client(int i_fd, char *username);
public:
~Client() { close(fd); }
- static Client *Start(const char* ip, int port);
+ static Client *Start(const char* ip, int port, char *username);
void Run(ChatRoom *room);
void BreakLoop() { exit_flag = true; }
void HandleButton(ChatRoom *room);