]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/Request.h
2 * DEBUG: section 54 Interprocess Communication
6 #ifndef SQUID_IPC_REQUEST_H
7 #define SQUID_IPC_REQUEST_H
9 #include "base/RefCount.h"
10 #include "ipc/forward.h"
16 class Request
: public RefCountable
19 typedef RefCount
<Request
> Pointer
;
22 Request(int aRequestorId
, unsigned int aRequestId
):
23 requestorId(aRequestorId
), requestId(aRequestId
) {}
25 virtual void pack(TypedMsgHdr
& msg
) const = 0; ///< prepare for sendmsg()
26 virtual Pointer
clone() const = 0; ///< returns a copy of this
29 Request(const Request
&); // not implemented
30 Request
& operator= (const Request
&); // not implemented
33 int requestorId
; ///< kidId of the requestor; used for response destination
34 unsigned int requestId
; ///< unique for sender; matches request w/ response
39 #endif /* SQUID_IPC_REQUEST_H */