Added statistics updating and statisics dumping with SIGUSR1.
[silc.git] / apps / silcd / server_internal.h
index 7e773c863d3c37bd492023024b473875eda66096..c435c77622a9a0b46207d8557c643bbdf57ce4a7 100644 (file)
@@ -29,8 +29,9 @@ typedef struct {
   SilcUInt32 my_servers;                 /* Locally connected servers */
   SilcUInt32 my_routers;                 /* Locally connected routers */
   SilcUInt32 my_channels;                /* Locally created channels */
-  SilcUInt32 my_chanclients;     /* Local clients on local channels */
-  SilcUInt32 my_aways;           /* Local clients away (XXX) */
+  SilcUInt32 my_chanclients;             /* Local clients on local channels */
+  SilcUInt32 my_aways;                   /* Local clients away (gone) */
+  SilcUInt32 my_detached;                /* Local clients detached */
   SilcUInt32 my_server_ops;              /* Local server operators */
   SilcUInt32 my_router_ops;              /* Local router operators */
 
@@ -38,12 +39,14 @@ typedef struct {
   SilcUInt32 cell_clients;               /* All clients in cell */
   SilcUInt32 cell_servers;               /* All servers in cell */
   SilcUInt32 cell_channels;              /* All channels in cell */
-  SilcUInt32 cell_chanclients;   /* All clients on cell's channels */
-  SilcUInt32 clients;            /* All clients */
-  SilcUInt32 servers;            /* All servers */
-  SilcUInt32 routers;            /* All routers */
-  SilcUInt32 channels;           /* All channels */
+  SilcUInt32 cell_chanclients;           /* All clients on cell's channels */
+  SilcUInt32 clients;                    /* All clients */
+  SilcUInt32 servers;                    /* All servers */
+  SilcUInt32 routers;                    /* All routers */
+  SilcUInt32 channels;                   /* All channels */
   SilcUInt32 chanclients;                /* All clients on channels */
+  SilcUInt32 aways;                      /* All clients away (gone) */
+  SilcUInt32 detached;                   /* All clients detached */
   SilcUInt32 server_ops;                 /* All server operators */
   SilcUInt32 router_ops;                 /* All router operators */
 
@@ -53,7 +56,7 @@ typedef struct {
   SilcUInt32 auth_attempts;              /* Authentication attempts */
   SilcUInt32 auth_failures;              /* Authentication failures */
   SilcUInt32 packets_sent;               /* Sent packets */
-  SilcUInt32 packets_received;   /* Received packets */
+  SilcUInt32 packets_received;           /* Received packets */
 } SilcServerStatistics;
 
 /*