]>
Commit | Line | Data |
---|---|---|
33727f0b | 1 | /* |
f70aedc4 | 2 | * Copyright (C) 1996-2021 The Squid Software Foundation and contributors |
bbc27441 AJ |
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. | |
33727f0b AR |
7 | */ |
8 | ||
9 | #ifndef SQUID_IPC_STRAND_SEARCH_H | |
10 | #define SQUID_IPC_STRAND_SEARCH_H | |
11 | ||
12 | #include "ipc/forward.h" | |
4c218615 | 13 | #include "ipc/QuestionerId.h" |
33727f0b AR |
14 | #include "ipc/StrandCoord.h" |
15 | #include "SquidString.h" | |
33727f0b AR |
16 | |
17 | namespace Ipc | |
18 | { | |
19 | ||
20 | /// asynchronous strand search request | |
21 | class StrandSearchRequest | |
22 | { | |
23 | public: | |
4c218615 | 24 | explicit StrandSearchRequest(const String &aTag); ///< sender's constructor |
33727f0b AR |
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 | |
33727f0b | 30 | String tag; ///< set when looking for a matching StrandCoord::tag |
4c218615 | 31 | QuestionerId qid; ///< the sender of the request |
33727f0b AR |
32 | }; |
33 | ||
33727f0b AR |
34 | } // namespace Ipc; |
35 | ||
36 | #endif /* SQUID_IPC_STRAND_SEARCH_H */ | |
f53969cc | 37 |