]>
Commit | Line | Data |
---|---|---|
1c898d4c AJ |
1 | #ifndef SQUID__SRC_CLIENTINFO_H |
2 | #define SQUID__SRC_CLIENTINFO_H | |
3 | ||
96d89ea0 | 4 | #include "ip/Address.h" |
1994c73c AJ |
5 | #include "hash.h" |
6 | #include "enums.h" | |
7 | #include "typedefs.h" | |
1c898d4c | 8 | |
04f7fd38 AJ |
9 | class ClientInfo |
10 | { | |
1c898d4c AJ |
11 | public: |
12 | hash_link hash; /* must be first */ | |
13 | ||
b7ac5457 | 14 | Ip::Address addr; |
1c898d4c AJ |
15 | |
16 | struct { | |
17 | int result_hist[LOG_TYPE_MAX]; | |
18 | int n_requests; | |
19 | kb_t kbytes_in; | |
20 | kb_t kbytes_out; | |
21 | kb_t hit_kbytes_out; | |
22 | } Http, Icp; | |
23 | ||
24 | struct { | |
25 | time_t time; | |
26 | int n_req; | |
27 | int n_denied; | |
28 | } cutoff; | |
29 | int n_established; /* number of current established connections */ | |
30 | time_t last_seen; | |
31 | }; | |
32 | ||
33 | #endif |