implemented _WHY2_ACCEPT_THREAD_PARAMS in servers

This commit is contained in:
Václav Šmejkal 2025-01-31 16:57:57 +01:00
parent 4b6ca483c8
commit f7e71324f4
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 4 additions and 2 deletions

View File

@ -58,7 +58,8 @@ int main(void)
printf("CA server enabled.\n\n");
pthread_create(&thread, NULL, why2_accept_thread, &listen_socket);
_WHY2_ACCEPT_THREAD_PARAMS params = { listen_socket, WHY2_CHAT_AUTHORITY };
pthread_create(&thread, NULL, why2_accept_thread, &params);
for (;;)
{

View File

@ -58,7 +58,8 @@ int main(void)
printf("Server enabled.\n\n");
pthread_create(&thread, NULL, why2_accept_thread, &listen_socket);
_WHY2_ACCEPT_THREAD_PARAMS params = { listen_socket, WHY2_CHAT_SERVER };
pthread_create(&thread, NULL, why2_accept_thread, &params);
for (;;)
{