From 493724626c2c3fe4611086791ad4773ac84c9a9f Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Wed, 22 Feb 2023 10:03:49 +0100 Subject: [PATCH] created why2_connection_t struct contains connection and pthread_t --- include/chat/misc.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/chat/misc.h b/include/chat/misc.h index f10d144..27627a3 100644 --- a/include/chat/misc.h +++ b/include/chat/misc.h @@ -24,4 +24,10 @@ char *why2_read_socket(int socket); //read lol void *why2_communicate_thread(void *arg); //COMMUNICATION THREAD void *why2_accept_thread(void *socket); //LOOP ACCEPTING CONNECTIONS +typedef struct why2_connection +{ + int connection; + int thread; //pthread_t +} why2_connection_t; + #endif \ No newline at end of file