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