From 2390c0ace5b4a59c71b54b252057f957e32bfcd9 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Fri, 3 May 1996 14:20:14 +0000 Subject: [PATCH] added client_stat_summary until Jeff can add functionality to client_stat --- src/rsrv/Makefile.Vx | 6 ++++-- src/rsrv/client_stat_summary.c | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 src/rsrv/client_stat_summary.c diff --git a/src/rsrv/Makefile.Vx b/src/rsrv/Makefile.Vx index 343d9e078..9aeade75f 100644 --- a/src/rsrv/Makefile.Vx +++ b/src/rsrv/Makefile.Vx @@ -7,11 +7,13 @@ USR_INCLUDES = -I../../ca USR_CFLAGS = -UUNIX SRCS.c = ../caserverio.c ../caservertask.c ../camsgtask.c ../camessage.c \ - ../rsrv_init.c ../cast_server.c ../online_notify.c ../globalsource.c + ../rsrv_init.c ../cast_server.c ../online_notify.c ../globalsource.c \ + ../client_stat_summary.c OBJS = \ caserverio.o caservertask.o camsgtask.o camessage.o \ - rsrv_init.o cast_server.o online_notify.o globalsource.o + rsrv_init.o cast_server.o online_notify.o globalsource.o \ + client_stat_summary.o PROD = rsrvLib diff --git a/src/rsrv/client_stat_summary.c b/src/rsrv/client_stat_summary.c new file mode 100644 index 000000000..2a554bdc8 --- /dev/null +++ b/src/rsrv/client_stat_summary.c @@ -0,0 +1,27 @@ +#include +#include +#include +#include + +#include +#include +#include + +#include +#include + +void client_stat_summary(void) +{ + struct client *pclient; + + LOCK_CLIENTQ; + pclient = (struct client *) ellFirst(&clientQ); + while (pclient) { + printf( "Client Name=%s, Client Host=%s Number channels %d\n", + pclient->pUserName, + pclient->pHostName, + ellCount(&pclient->addrq)); + pclient = (struct client *) ellNext(&pclient->node); + } + UNLOCK_CLIENTQ; +}