]> git.ipfire.org Git - thirdparty/squid.git/blame - src/ipc/StrandSearch.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / ipc / StrandSearch.h
CommitLineData
33727f0b 1/*
4ac4a490 2 * Copyright (C) 1996-2017 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"
13#include "ipc/StrandCoord.h"
14#include "SquidString.h"
33727f0b
AR
15
16namespace Ipc
17{
18
19/// asynchronous strand search request
20class StrandSearchRequest
21{
22public:
23 StrandSearchRequest();
24 explicit StrandSearchRequest(const TypedMsgHdr &hdrMsg); ///< from recvmsg()
25 void pack(TypedMsgHdr &hdrMsg) const; ///< prepare for sendmsg()
26
27public:
28 int requestorId; ///< sender-provided return address
33727f0b
AR
29 String tag; ///< set when looking for a matching StrandCoord::tag
30};
31
32/// asynchronous strand search response
33class StrandSearchResponse
34{
35public:
b2aa0934 36 StrandSearchResponse(const StrandCoord &strand);
33727f0b
AR
37 explicit StrandSearchResponse(const TypedMsgHdr &hdrMsg); ///< from recvmsg()
38 void pack(TypedMsgHdr &hdrMsg) const; ///< prepare for sendmsg()
39
40public:
33727f0b
AR
41 StrandCoord strand; ///< answer matching StrandSearchRequest criteria
42};
43
44} // namespace Ipc;
45
46#endif /* SQUID_IPC_STRAND_SEARCH_H */
f53969cc 47