]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/Request.cc
4 * DEBUG: section 16 Cache Manager API
9 #include "base/TextException.h"
10 #include "comm/Connection.h"
11 #include "ipc/Messages.h"
12 #include "mgr/ActionParams.h"
13 #include "mgr/Request.h"
16 Mgr::Request::Request(int aRequestorId
, unsigned int aRequestId
, const Comm::ConnectionPointer
&conn
,
17 const ActionParams
&aParams
):
18 requestorId(aRequestorId
), requestId(aRequestId
),
22 Must(requestorId
> 0);
26 Mgr::Request::Request(const Ipc::TypedMsgHdr
& msg
)
28 msg
.checkType(Ipc::mtCacheMgrRequest
);
29 msg
.getPod(requestorId
);
30 msg
.getPod(requestId
);
31 params
= ActionParams(msg
);
37 Mgr::Request::pack(Ipc::TypedMsgHdr
& msg
) const
39 msg
.setType(Ipc::mtCacheMgrRequest
);
40 msg
.putPod(requestorId
);
41 msg
.putPod(requestId
);