implemented _WHY2_ACCEPT_THREAD_PARAMS in servers
This commit is contained in:
parent
4b6ca483c8
commit
f7e71324f4
@ -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, ¶ms);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
@ -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, ¶ms);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user