]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/StrandSearch.cc
2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 /* DEBUG: section 54 Interprocess Communication */
12 #include "ipc/Messages.h"
13 #include "ipc/StrandSearch.h"
14 #include "ipc/TypedMsgHdr.h"
16 Ipc::StrandSearchRequest::StrandSearchRequest(): requestorId(-1)
20 Ipc::StrandSearchRequest::StrandSearchRequest(const TypedMsgHdr
&hdrMsg
):
23 hdrMsg
.checkType(mtStrandSearchRequest
);
24 hdrMsg
.getPod(requestorId
);
25 hdrMsg
.getString(tag
);
28 void Ipc::StrandSearchRequest::pack(TypedMsgHdr
&hdrMsg
) const
30 hdrMsg
.setType(mtStrandSearchRequest
);
31 hdrMsg
.putPod(requestorId
);
32 hdrMsg
.putString(tag
);
35 /* StrandSearchResponse */
37 Ipc::StrandSearchResponse::StrandSearchResponse(const Ipc::StrandCoord
&aStrand
):
42 Ipc::StrandSearchResponse::StrandSearchResponse(const TypedMsgHdr
&hdrMsg
)
44 hdrMsg
.checkType(mtStrandSearchResponse
);
45 strand
.unpack(hdrMsg
);
48 void Ipc::StrandSearchResponse::pack(TypedMsgHdr
&hdrMsg
) const
50 hdrMsg
.setType(mtStrandSearchResponse
);