refactor pt 2

This commit is contained in:
2026-03-08 12:52:18 -05:00
parent 09fcc17caa
commit 53dd322284
3 changed files with 89 additions and 9 deletions

6
chat.h
View File

@@ -27,8 +27,6 @@ const int CURSOR_DEFAULT_POSITION_Y = 12;
const int LOG_LENGTH = 10;
int line_position = 0;
chatmode_t mode = NO_MODE;
struct timeval time_start;
struct timeval time_end;
int bytes_read;
@@ -50,10 +48,10 @@ int count_lines(std::string p);
int file_disp(std::string p, int lnstart, int lncount = 10);
int log_append(std::string p, std::string ln);
int log_linect(std::string p);
void *client_poll(void);
void client_start(void);
void client_stop(void);
void *server_poll(void *a);
void *poll_client(void);
void *poll_server(void *a);
void server_start(int port);
void server_stop(void);