DelayId.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 "DelayIdComposite.h"
15 
16 class ClientHttpRequest;
17 class HttpReply;
18 
20 class DelayId
21 {
22 
23 public:
24  static DelayId DelayClient(ClientHttpRequest *, HttpReply *reply = nullptr);
25  DelayId ();
26  DelayId (unsigned short);
27  ~DelayId ();
28  unsigned short pool() const;
32  bool operator == (DelayId const &rhs) const;
33  operator bool() const;
34  int bytesWanted(int min, int max) const;
35  void bytesIn (int qty);
36  void setNoDelay(bool const);
37  void delayRead(DeferredRead const &);
38 
39 private:
40  unsigned short pool_;
43 };
44 
45 #endif /* USE_DELAY_POOLS */
46 #endif /* SQUID_DELAYID_H */
47 
unsigned short pool_
Definition: DelayId.h:40
DelayIdComposite::Pointer compositeId
Definition: DelayId.h:41
bool markedAsNoDelay
Definition: DelayId.h:42
A const & max(A const &lhs, A const &rhs)
void delayRead(DeferredRead const &)
Definition: DelayId.cc:169
void setNoDelay(bool const)
Definition: DelayId.cc:122
int bytesWanted(int min, int max) const
Definition: DelayId.cc:132
unsigned short pool() const
Definition: DelayId.cc:46
DelayId()
Definition: DelayId.cc:27
DelayIdComposite::Pointer compositePosition()
void bytesIn(int qty)
Definition: DelayId.cc:154
static DelayId DelayClient(ClientHttpRequest *, HttpReply *reply=nullptr)
Definition: DelayId.cc:67
~DelayId()
Definition: DelayId.cc:36
bool operator==(DelayId const &rhs) const
Definition: DelayId.cc:52
A const & min(A const &lhs, A const &rhs)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors