]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/Response.h
4 * DEBUG: section 16 Cache Manager API
8 #ifndef SQUID_MGR_RESPONSE_H
9 #define SQUID_MGR_RESPONSE_H
11 #include "ipc/forward.h"
12 #include "ipc/Response.h"
13 #include "mgr/Action.h"
19 /// A response to Mgr::Request.
20 /// May carry strand action data to be aggregated with data from other strands.
21 class Response
: public Ipc::Response
24 Response(unsigned int aRequestId
, Action::Pointer anAction
= NULL
);
26 explicit Response(const Ipc::TypedMsgHdr
& msg
); ///< from recvmsg()
28 /* Ipc::Response API */
29 virtual void pack(Ipc::TypedMsgHdr
& msg
) const;
30 virtual Ipc::Response::Pointer
clone() const;
32 bool hasAction() const; ///< whether response contain action object
33 const Action
& getAction() const; ///< returns action object
36 Response(const Response
& response
);
39 Action::Pointer action
; ///< action relating to response
44 #endif /* SQUID_MGR_RESPONSE_H */