From 0efd01a956e0f524f3c084548b314f40f6831441 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 30 Apr 2025 11:53:44 +0200 Subject: base project --- client.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 client.h (limited to 'client.h') diff --git a/client.h b/client.h new file mode 100644 index 0000000..ea19034 --- /dev/null +++ b/client.h @@ -0,0 +1,19 @@ +#ifndef CLIENT_H +#define CLIENT_H + +#include + +#define BUFFER_SIZE 512 + +typedef struct { + int socket; + struct sockaddr_in address; + char username[50]; + char room[50]; +} client_t; + +void *handle_client(void *arg); +void send_to_client(int sock, const char *msg); +void broadcast_message(const char *message, int sender_sock); + +#endif -- cgit v1.2.3