]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/Request.h
4 * DEBUG: section 54 Interprocess Communication
8 #ifndef SQUID_IPC_REQUEST_H
9 #define SQUID_IPC_REQUEST_H
11 #include "ipc/forward.h"
18 class Request
: public RefCountable
21 typedef RefCount
<Request
> Pointer
;
24 Request(int aRequestorId
, unsigned int aRequestId
):
25 requestorId(aRequestorId
), requestId(aRequestId
) {}
27 virtual void pack(TypedMsgHdr
& msg
) const = 0; ///< prepare for sendmsg()
28 virtual Pointer
clone() const = 0; ///< returns a copy of this
31 Request(const Request
&); // not implemented
32 Request
& operator= (const Request
&); // not implemented
35 int requestorId
; ///< kidId of the requestor; used for response destination
36 unsigned int requestId
; ///< unique for sender; matches request w/ response
41 #endif /* SQUID_IPC_REQUEST_H */