Squid Web Cache
master
Loading...
Searching...
No Matches
RequestId.cc
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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
#include "
squid.h
"
10
#include "
base/TextException.h
"
11
#include "
debug/Stream.h
"
12
#include "
ipc/RequestId.h
"
13
14
#include <iostream>
15
16
Ipc::RequestId::RequestId
(
const
Index
anIndex):
17
qid_(anIndex ?
MyQuestionerId
() :
QuestionerId
()),
18
index_(anIndex)
19
{
20
}
21
22
std::ostream &
23
Ipc::operator <<
(std::ostream &os,
const
RequestId
&requestId)
24
{
25
os << requestId.
index
() <<
'@'
<< requestId.
questioner
();
26
return
os;
27
}
28
RequestId.h
TextException.h
Ipc::QuestionerId
Definition
QuestionerId.h:22
Ipc::RequestId
Definition
RequestId.h:23
Ipc::RequestId::index
Index index() const
Definition
RequestId.h:45
Ipc::RequestId::questioner
QuestionerId questioner() const
Definition
RequestId.h:44
Ipc::RequestId::RequestId
RequestId()=default
request recipient's constructor
Ipc::RequestId::Index
unsigned int Index
Definition
RequestId.h:27
Stream.h
Ipc::operator<<
std::ostream & operator<<(std::ostream &os, const QuestionerId &qid)
Definition
QuestionerId.h:63
Ipc::MyQuestionerId
QuestionerId MyQuestionerId()
the questioner ID of the current/calling process
Definition
QuestionerId.cc:18
squid.h
squid
src
ipc
RequestId.cc
Generated by
1.9.8