diff --git a/src/server.c b/src/server.c index 81cf2e5..69a1f59 100644 --- a/src/server.c +++ b/src/server.c @@ -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; diff --git a/src/server.h b/src/server.h index 341e737..70f56c5 100644 --- a/src/server.h +++ b/src/server.h @@ -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*);