created why2_connection_t struct

contains connection and pthread_t
This commit is contained in:
Václav Šmejkal 2023-02-22 10:03:49 +01:00
parent 736cd82240
commit 493724626c
Signed by: ENGO150
GPG Key ID: F6D6DF86242C5A59

View File

@ -24,4 +24,10 @@ char *why2_read_socket(int socket); //read lol
void *why2_communicate_thread(void *arg); //COMMUNICATION THREAD void *why2_communicate_thread(void *arg); //COMMUNICATION THREAD
void *why2_accept_thread(void *socket); //LOOP ACCEPTING CONNECTIONS void *why2_accept_thread(void *socket); //LOOP ACCEPTING CONNECTIONS
typedef struct why2_connection
{
int connection;
int thread; //pthread_t
} why2_connection_t;
#endif #endif