]>
Commit | Line | Data |
---|---|---|
cc0ca3b9 AJ |
1 | #ifndef SQUID_SRC_MESSAGESIZES_H |
2 | #define SQUID_SRC_MESSAGESIZES_H | |
3 | ||
4 | /** | |
5 | * Counters used to collate the traffic size measurements | |
6 | * for a transaction message. | |
7 | */ | |
8 | class MessageSizes | |
9 | { | |
10 | public: | |
11 | MessageSizes() : header(0), payloadData(0) {} | |
12 | ||
13 | /// size of message header block (if any) | |
14 | /// including message Request-Line or Start-Line. | |
15 | uint64_t header; | |
16 | ||
17 | /// total size of payload block(s) excluding transfer encoding overheads | |
18 | uint64_t payloadData; | |
19 | ||
20 | /// total message size | |
21 | uint64_t messageTotal() const {return header + payloadData;} | |
22 | }; | |
23 | ||
24 | #endif /* SQUID_SRC_MESSAGESIZES_H */ |