DelayId.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2022 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_DELAYID_H
10 #define SQUID_DELAYID_H
11 
12 #if USE_DELAY_POOLS
13 
14 #include "base/forward.h"
15 #include "DelayIdComposite.h"
16 
17 class ClientHttpRequest;
18 class HttpReply;
19 
21 class DelayId
22 {
23 
24 public:
25  static DelayId DelayClient(ClientHttpRequest *, HttpReply *reply = nullptr);
26  DelayId ();
27  DelayId (unsigned short);
28  ~DelayId ();
29  unsigned short pool() const;
33  bool operator == (DelayId const &rhs) const;
34  operator bool() const;
35  int bytesWanted(int min, int max) const;
36  void bytesIn (int qty);
37  void setNoDelay(bool const);
38  void delayRead(const AsyncCallPointer &);
39 
40 private:
41  unsigned short pool_;
44 };
45 
46 #endif /* USE_DELAY_POOLS */
47 #endif /* SQUID_DELAYID_H */
48 
static DelayId DelayClient(ClientHttpRequest *, HttpReply *reply=nullptr)
Definition: DelayId.cc:67
unsigned short pool_
Definition: DelayId.h:41
unsigned short pool() const
Definition: DelayId.cc:46
bool operator==(DelayId const &rhs) const
Definition: DelayId.cc:52
DelayId()
Definition: DelayId.cc:27
int bytesWanted(int min, int max) const
Definition: DelayId.cc:130
bool markedAsNoDelay
Definition: DelayId.h:43
~DelayId()
Definition: DelayId.cc:36
A const & max(A const &lhs, A const &rhs)
DelayIdComposite::Pointer compositePosition()
void bytesIn(int qty)
Definition: DelayId.cc:152
void setNoDelay(bool const)
Definition: DelayId.cc:120
DelayIdComposite::Pointer const compositePosition() const
void delayRead(const AsyncCallPointer &)
Definition: DelayId.cc:167
A const & min(A const &lhs, A const &rhs)
DelayIdComposite::Pointer compositeId
Definition: DelayId.h:42

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors