added client_stat_summary until Jeff can add functionality to client_stat

This commit is contained in:
Marty Kraimer
1996-05-03 14:20:14 +00:00
parent 17989d29fe
commit 2390c0ace5
2 changed files with 31 additions and 2 deletions
+4 -2
View File
@@ -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
+27
View File
@@ -0,0 +1,27 @@
#include <vxWorks.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sockLib.h>
#include <socket.h>
#include <in.h>
#include <ellLib.h>
#include <server.h>
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;
}