added plain why2_authority_communicate_thread fn

This commit is contained in:
Václav Šmejkal 2025-01-31 16:29:06 +01:00
parent 7f76a43ea4
commit 8c80d3b815
Signed by: ENGO150
GPG Key ID: 4A57E86482968843
2 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,7 @@ extern "C" {
void why2_send_socket(char *text, char *username, int socket); //send socket.... wtf did you expect void why2_send_socket(char *text, char *username, int socket); //send socket.... wtf did you expect
void why2_send_socket_code(char *params, char *username, int socket, char *code); //SEND SOCKET BUT WITH CODE void why2_send_socket_code(char *params, char *username, int socket, char *code); //SEND SOCKET BUT WITH CODE
void *why2_communicate_thread(void *arg); //COMMUNICATION THREAD void *why2_communicate_thread(void *arg); //COMMUNICATION THREAD
void *why2_authority_communicate_thread(void *arg); //CA COMMUNICATION THREAD
void *why2_accept_thread(void *socket); //LOOP ACCEPTING CONNECTIONS void *why2_accept_thread(void *socket); //LOOP ACCEPTING CONNECTIONS
void why2_clean_connections(void); //CLOSE EVERY CONNECTION void why2_clean_connections(void); //CLOSE EVERY CONNECTION
void why2_clean_threads(void); //CLOSE EVERY RUNNING MESSAGE THREAD void why2_clean_threads(void); //CLOSE EVERY RUNNING MESSAGE THREAD

View File

@ -865,6 +865,13 @@ void *why2_communicate_thread(void *arg)
return NULL; return NULL;
} }
void *why2_authority_communicate_thread(void *arg)
{
int connection = *(int*) arg;
printf("User connected.\t\t%d\n", connection);
}
void *why2_accept_thread(void *socket) void *why2_accept_thread(void *socket)
{ {
int accepted; int accepted;