#include <DelayId.h>

| Public Member Functions | |
| DelayId () | |
| DelayId (unsigned short, const DelayIdComposite::Pointer &) | |
| ~DelayId () | |
| unsigned short | pool () const | 
| bool | operator== (DelayId const &rhs) const | 
| operator bool () const | |
| int | bytesWanted (int min, int max) const | 
| void | bytesIn (int qty) | 
| void | setNoDelay (bool const) | 
| void | delayRead (const AsyncCallPointer &) | 
| Static Public Member Functions | |
| static DelayId | DelayClient (ClientHttpRequest *, HttpReply *reply=nullptr) | 
| Private Attributes | |
| unsigned short | pool_ | 
| DelayIdComposite::Pointer | compositeId | 
| bool | markedAsNoDelay | 
Detailed Description
Constructor & Destructor Documentation
◆ DelayId() [1/2]
| DelayId::DelayId | ( | ) | 
Definition at line 28 of file DelayId.cc.
Referenced by DelayClient().
◆ DelayId() [2/2]
| DelayId::DelayId | ( | unsigned short | aPool, | 
| const DelayIdComposite::Pointer & | aCompositeId | ||
| ) | 
Definition at line 31 of file DelayId.cc.
References assert, compositeId, debugs, and pool_.
◆ ~DelayId()
| DelayId::~DelayId | ( | ) | 
Definition at line 39 of file DelayId.cc.
Member Function Documentation
◆ bytesIn()
| void DelayId::bytesIn | ( | int | qty | ) | 
Definition at line 135 of file DelayId.cc.
References DelayIdComposite::bytesIn(), and compositeId.
Referenced by Ftp::Client::dataRead(), and HttpStateData::readReply().
◆ bytesWanted()
Definition at line 119 of file DelayId.cc.
References DelayIdComposite::bytesWanted(), compositeId, and max().
Referenced by store_client::bytesWanted(), and MemObject::mostBytesWanted().
◆ DelayClient()
| 
 | static | 
Definition at line 64 of file DelayId.cc.
References Acl::Answer::allowed(), assert, HttpRequest::auth_user_request, HttpRequest::client_addr, clientAclChecklistFill(), Config, DBG_IMPORTANT, debugs, DelayPools::delay_data, SquidConfig::delay_pool_uses_indirect_client, DelayId(), ACLChecklist::fastCheck(), HttpRequest::indirect_client_addr, Ip::Address::isNoAddr(), SquidConfig::onoff, pool(), DelayPools::pools(), ClientHttpRequest::request, ACLFilledChecklist::src_addr, StringToSBuf(), HttpRequest::tag, ACLFilledChecklist::updateReply(), and CompositePoolNode::CompositeSelectionDetails::user.
Referenced by clientReplyContext::createStoreEntry(), clientReplyContext::doGetMoreData(), clientReplyContext::processExpired(), clientReplyContext::sendMoreData(), Ssl::ServerBump::ServerBump(), clientReplyContext::setReplyToStoreEntry(), statClientRequests(), switchToTunnel(), and tunnelStart().
◆ delayRead()
| void DelayId::delayRead | ( | const AsyncCallPointer & | aRead | ) | 
Definition at line 144 of file DelayId.cc.
References assert, compositeId, and DelayIdComposite::delayRead().
◆ operator bool()
| DelayId::operator bool | ( | ) | const | 
Whether we may delay reading. This operator is meant to be used as an optimization that helps avoid more expensive bytesWanted() computations.
- Return values
- 
  false if bytesWanted() called with a positive maximum limit parameter will never return zero 
Definition at line 57 of file DelayId.cc.
◆ operator==()
| bool DelayId::operator== | ( | DelayId const & | rhs | ) | const | 
Definition at line 49 of file DelayId.cc.
References compositeId, and pool_.
◆ pool()
| unsigned short DelayId::pool | ( | ) | const | 
◆ setNoDelay()
| void DelayId::setNoDelay | ( | bool const | newValue | ) | 
Definition at line 109 of file DelayId.cc.
References markedAsNoDelay.
Referenced by MemObject::setNoDelay().
Member Data Documentation
◆ compositeId
| 
 | private | 
Definition at line 45 of file DelayId.h.
Referenced by bytesIn(), bytesWanted(), DelayId(), delayRead(), and operator==().
◆ markedAsNoDelay
| 
 | private | 
Definition at line 46 of file DelayId.h.
Referenced by setNoDelay().
◆ pool_
| 
 | private | 
Definition at line 44 of file DelayId.h.
Referenced by DelayId(), operator==(), and pool().
The documentation for this class was generated from the following files:
- src/DelayId.h
- src/DelayId.cc
- src/tests/stub_DelayId.cc
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
