]> git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/StrandSearch.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / ipc / StrandSearch.h
1 /*
2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9 #ifndef SQUID_IPC_STRAND_SEARCH_H
10 #define SQUID_IPC_STRAND_SEARCH_H
11
12 #include "ipc/forward.h"
13 #include "ipc/QuestionerId.h"
14 #include "ipc/StrandCoord.h"
15 #include "SquidString.h"
16
17 namespace Ipc
18 {
19
20 /// asynchronous strand search request
21 class StrandSearchRequest
22 {
23 public:
24 explicit StrandSearchRequest(const String &aTag); ///< sender's constructor
25 explicit StrandSearchRequest(const TypedMsgHdr &hdrMsg); ///< from recvmsg()
26 void pack(TypedMsgHdr &hdrMsg) const; ///< prepare for sendmsg()
27
28 public:
29 int requestorId; ///< sender-provided return address
30 String tag; ///< set when looking for a matching StrandCoord::tag
31 QuestionerId qid; ///< the sender of the request
32 };
33
34 } // namespace Ipc;
35
36 #endif /* SQUID_IPC_STRAND_SEARCH_H */
37