created threads

This commit is contained in:
2025-07-10 19:29:43 -06:00
parent 71346bdd5f
commit 1f810c707e
+7 -1
View File
@@ -211,8 +211,14 @@ int main(int argc, char* argv[]) {
}
printf("Connected!\n");
}
pthread_create(&input_thread, NULL, input, (void*) msg);
pthread_create(&input_thread, NULL, input, NULL);
pthread_create(&send_thread, NULL, sender, NULL);
pthread_create(&receive_thread, NULL, receiver, NULL);
pthread_create(&output_thread, NULL, output, NULL);
pthread_join(input_thread, NULL);
pthread_join(send_thread, NULL);
pthread_join(receive_thread, NULL);
pthread_join(output_thread, NULL);
close(sockfd);
close(confd);