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.hpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/client/user.hpp b/src/client/user.hpp
deleted file mode 100644
index 1ae8427..0000000
--- a/src/client/user.hpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#ifndef USER_H
-#define USER_H
-
-#include "clui.hpp"
-#include "../const_vars.hpp"
-
-class Client {
- int fd;
- char in_buffer[max_usermsg_len]; // for input
- int in_buf_used;
-
- char out_buffer[max_msg_len]; // for message
- int out_buf_used;
-
- bool exit_flag;
-
- Client(int i_fd, char *username);
-public:
- ~Client() { close(fd); }
-
- static Client *Start(const char* ip, int port, char *username);
- void Run(ChatRoom *room);
- void BreakLoop() { exit_flag = true; }
- void HandleButton(ChatRoom *room);
-
- void AddCharToBuffer(char ch);
- void RemoveCharFromBuffer();
- void SendMessage();
-};
-
-#endif \ No newline at end of file