/* * Copyright (C) 1996-2023 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ #ifndef SQUID_IPC_STRAND_SEARCH_H #define SQUID_IPC_STRAND_SEARCH_H #include "ipc/forward.h" #include "ipc/QuestionerId.h" #include "ipc/StrandCoord.h" #include "SquidString.h" namespace Ipc { /// asynchronous strand search request class StrandSearchRequest { public: explicit StrandSearchRequest(const String &aTag); ///< sender's constructor explicit StrandSearchRequest(const TypedMsgHdr &hdrMsg); ///< from recvmsg() void pack(TypedMsgHdr &hdrMsg) const; ///< prepare for sendmsg() public: int requestorId; ///< sender-provided return address String tag; ///< set when looking for a matching StrandCoord::tag QuestionerId qid; ///< the sender of the request }; } // namespace Ipc; #endif /* SQUID_IPC_STRAND_SEARCH_H */