RequestId.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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
17 qid_(anIndex ? MyQuestionerId() : QuestionerId()),
18 index_(anIndex)
19{
20}
21
22std::ostream &
23Ipc::operator <<(std::ostream &os, const RequestId &requestId)
24{
25 os << requestId.index() << '@' << requestId.questioner();
26 return os;
27}
28
Index index() const
Definition: RequestId.h:45
QuestionerId questioner() const
Definition: RequestId.h:44
RequestId()=default
request recipient's constructor
unsigned int Index
Definition: RequestId.h:27
std::ostream & operator<<(std::ostream &os, const QuestionerId &qid)
Definition: QuestionerId.h:63
QuestionerId MyQuestionerId()
the questioner ID of the current/calling process
Definition: QuestionerId.cc:18

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors