1 
2 /* Web Polygraph       http://www.web-polygraph.org/
3  * Copyright 2003-2011 The Measurement Factory
4  * Licensed under the Apache License, Version 2.0 */
5 
6 #ifndef POLYGRAPH__ICP_ICPOPCODE_H
7 #define POLYGRAPH__ICP_ICPOPCODE_H
8 
9 enum IcpOpCode {
10 	icpInvalid     =   0,
11 	icpQuery       =   1,
12 	icpHit         =   2,
13 	icpMiss        =   3,
14 	icpError       =   4,
15 	icpMissNoFetch =  21,
16 	icpDenied      =  22,
17 
18 	icpTimeout     = 127 // not a real code, but convenient
19 };
20 
21 /*
22    http://www.squid-cache.org/Doc/rfc2186.txt
23 
24        0    ICP_OP_INVALID
25        1    ICP_OP_QUERY
26        2    ICP_OP_HIT
27        3    ICP_OP_MISS
28        4    ICP_OP_ERR
29      5-9    UNUSED
30       10    ICP_OP_SECHO
31       11    ICP_OP_DECHO
32    12-20    UNUSED
33       21    ICP_OP_MISS_NOFETCH
34       22    ICP_OP_DENIED
35       23    ICP_OP_HIT_OBJ
36 */
37 
38 #endif
39