| 52 |
|
* statistics structures |
| 53 |
|
*/ |
| 54 |
|
struct ServerStatistics { |
| 55 |
– |
unsigned int is_cl; /* number of client connections */ |
| 56 |
– |
unsigned int is_sv; /* number of server connections */ |
| 57 |
– |
unsigned int is_ni; /* connection but no idea who it was */ |
| 58 |
– |
|
| 55 |
|
uint64_t is_cbs; /* bytes sent to clients */ |
| 56 |
|
uint64_t is_cbr; /* bytes received from clients */ |
| 57 |
|
uint64_t is_sbs; /* bytes sent to servers */ |
| 58 |
|
uint64_t is_sbr; /* bytes received from servers */ |
| 59 |
|
time_t is_cti; /* time spent connected by clients */ |
| 60 |
|
time_t is_sti; /* time spent connected by servers */ |
| 61 |
+ |
|
| 62 |
+ |
unsigned int is_cl; /* number of client connections */ |
| 63 |
+ |
unsigned int is_sv; /* number of server connections */ |
| 64 |
+ |
unsigned int is_ni; /* connection but no idea who it was */ |
| 65 |
+ |
|
| 66 |
|
unsigned int is_ac; /* connections accepted */ |
| 67 |
|
unsigned int is_ref; /* accepts refused */ |
| 68 |
|
unsigned int is_unco; /* unknown commands */ |
| 87 |
|
int invisi; /* invisible clients */ |
| 88 |
|
int max_loc; /* MAX local clients */ |
| 89 |
|
int max_tot; /* MAX global clients */ |
| 90 |
< |
unsigned long totalrestartcount; /* Total client count ever */ |
| 90 |
> |
uint64_t totalrestartcount; /* Total client count ever */ |
| 91 |
|
}; |
| 92 |
|
|
| 93 |
|
extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */ |
| 93 |
– |
extern unsigned long connect_id; /* unique connect ID */ |
| 94 |
|
|
| 95 |
|
struct ServerState_t |
| 96 |
|
{ |
| 129 |
|
extern dlink_list global_serv_list; /* global servers on the network */ |
| 130 |
|
extern dlink_list oper_list; /* our opers, duplicated in local_client_list */ |
| 131 |
|
extern int rehashed_klines; |
| 132 |
– |
extern unsigned long get_maxrss(void); |
| 132 |
|
extern void set_time(void); |
| 134 |
– |
|
| 133 |
|
#endif |