]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/StrandCoord.cc
4 * DEBUG: section 54 Interprocess Communication
10 #include "ipc/Messages.h"
11 #include "ipc/StrandCoord.h"
12 #include "ipc/TypedMsgHdr.h"
14 Ipc::StrandCoord::StrandCoord(): kidId(-1), pid(0)
18 Ipc::StrandCoord::StrandCoord(int aKidId
, pid_t aPid
): kidId(aKidId
), pid(aPid
)
23 Ipc::StrandCoord::unpack(const TypedMsgHdr
&hdrMsg
)
27 hdrMsg
.getString(tag
);
30 void Ipc::StrandCoord::pack(TypedMsgHdr
&hdrMsg
) const
34 hdrMsg
.putString(tag
);
37 Ipc::HereIamMessage::HereIamMessage(const StrandCoord
&aStrand
):
42 Ipc::HereIamMessage::HereIamMessage(const TypedMsgHdr
&hdrMsg
)
44 hdrMsg
.checkType(mtRegistration
);
45 strand
.unpack(hdrMsg
);
48 void Ipc::HereIamMessage::pack(TypedMsgHdr
&hdrMsg
) const
50 hdrMsg
.setType(mtRegistration
);