diff options
Diffstat (limited to 'nanohttp/nanohttp-server.c')
-rw-r--r-- | nanohttp/nanohttp-server.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/nanohttp/nanohttp-server.c b/nanohttp/nanohttp-server.c index 090b9d4..4995723 100644 --- a/nanohttp/nanohttp-server.c +++ b/nanohttp/nanohttp-server.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-server.c,v 1.60 2006/05/19 14:49:17 m0gg Exp $ +* $Id: nanohttp-server.c,v 1.61 2006/05/31 19:39:34 mrcsys Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -321,6 +321,27 @@ httpd_get_protocol(void) return hssl_enabled()? "https" : "http"; } +/*-------------------------------------------------- +FUNCTION: httpd_get_conncount +----------------------------------------------------*/ +int +httpd_get_conncount(void) +{ + int i; + int c=0; + + for (i = 0;i<_httpd_max_connections; i++) + { + + if (_httpd_connection[i].flag == CONNECTION_IN_USE) + { + c++; + } + } + + return c; +} + /* * ----------------------------------------------------- * FUNCTION: httpd_services |