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; +}