]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/Request.h
merge from trunk
[thirdparty/squid.git] / src / mgr / Request.h
1 /*
2 * $Id$
3 *
4 * DEBUG: section 16 Cache Manager API
5 *
6 */
7
8 #ifndef SQUID_MGR_REQUEST_H
9 #define SQUID_MGR_REQUEST_H
10
11 #include "ipc/forward.h"
12 #include "ipc/Request.h"
13 #include "mgr/ActionParams.h"
14
15
16 namespace Mgr
17 {
18
19 /// cache manager request
20 class Request: public Ipc::Request
21 {
22 public:
23 Request(int aRequestorId, unsigned int aRequestId, int aFd,
24 const ActionParams &aParams);
25
26 explicit Request(const Ipc::TypedMsgHdr& msg); ///< from recvmsg()
27 /* Ipc::Request API */
28 virtual void pack(Ipc::TypedMsgHdr& msg) const;
29 virtual Pointer clone() const;
30
31 private:
32 Request(const Request& request);
33
34 public:
35 int fd; ///< HTTP client connection descriptor
36
37 ActionParams params; ///< action name and parameters
38 };
39
40
41 } // namespace Mgr
42
43 #endif /* SQUID_MGR_REQUEST_H */