Declare disconnect_client function in header file

This commit is contained in:
flyingscorpio@clevo 2022-10-26 22:38:19 +02:00
parent 7e4a8bc707
commit 80c5999a5a
2 changed files with 4 additions and 0 deletions

View file

@ -179,6 +179,7 @@ int get_next_free_client_id(void) {
return -1; // Error: reached end of array
}
/* Disconnect a client using its client id */
int disconnect_client(int client_id) {
void *retval;

View file

@ -19,6 +19,9 @@ int handle_args(int, char**);
/* Compute the next free client_id in the client array */
int get_next_free_client_id(void);
/* Disconnect a client using its client id */
int disconnect_client(int);
/* Thread, parses and handles messages */
void *Dispatcher(void*);