X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=3d87008850a8ab3c39b3f1711d5aca1b2e2f3a45;hp=c0098b98a833f0cae309aba11a43bec1c2c7d1a6;hb=591b16bbe13ca336c4cef00e8f9f808c1bb4c9a0;hpb=c6fad99cade79e647ca46432e07278a7ef3fbef1 diff --git a/send_common.c b/send_common.c index c0098b98..3d870088 100644 --- a/send_common.c +++ b/send_common.c @@ -62,6 +62,8 @@ static int open_sender(unsigned l4type, int port) * Close the file descriptor given by \a sc, remove it from the close-on-fork * list, destroy the chunk queue of this client, delete the client from the * list of connected clients and free the sender_client struct. + * + * \sa shutdown_clients(). */ void shutdown_client(struct sender_client *sc, struct sender_status *ss) { @@ -76,6 +78,14 @@ void shutdown_client(struct sender_client *sc, struct sender_status *ss) ss->num_clients--; } +/** + * Shut down all clients connected to a paraslash sender. + * + * \param ss The sender whose clients are to be shut down. + * + * This just loops over all connected clients and calls shutdown_client() + * for each client. + */ void shutdown_clients(struct sender_status *ss) { struct sender_client *sc, *tmp;