aboutsummaryrefslogtreecommitdiff
path: root/multi.h
diff options
context:
space:
mode:
authorjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-12-18 07:57:19 +0000
committerjames <james@e7ae566f-a301-0410-adde-c780ea21d3b5>2008-12-18 07:57:19 +0000
commit4fb4ce12d90abf43f96af67dd308124742b59961 (patch)
tree00e619d26e38e41cb8f48d93dced3bd7061c6c2e /multi.h
parentAdded MultiFileExtract capability to Windows Installer. (diff)
downloadopenvpn-4fb4ce12d90abf43f96af67dd308124742b59961.tar.xz
Added "nclients" command to management interface to
display the current number of authenticated clients connected to the server. git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3717 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'multi.h')
-rw-r--r--multi.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/multi.h b/multi.h
index 7c33d87..55119d6 100644
--- a/multi.h
+++ b/multi.h
@@ -83,6 +83,7 @@ struct multi_instance {
#endif
bool connection_established_flag;
bool did_iroutes;
+ int n_clients_delta; /* added to multi_context.n_clients when instance is closed */
struct context context;
};
@@ -114,6 +115,7 @@ struct multi_context {
int max_clients;
int tcp_queue_limit;
int status_file_version;
+ int n_clients; /* current number of authenticated clients */
#ifdef MANAGEMENT_DEF_AUTH
struct hash *cid_hash;