stub_DelayId.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 /* DEBUG: section 20 Storage Manager */
10 
11 #include "squid.h"
12 
13 #if USE_DELAY_POOLS
14 #include "BandwidthBucket.h"
15 #include "DelayId.h"
16 
17 #define STUB_API "stub_DelayId.cc"
18 #include "tests/STUB.h"
19 
20 DelayId::DelayId(): pool_(0), compositeId(nullptr), markedAsNoDelay(false) {}
22 
25 bool BandwidthBucket::applyQuota(int &, Comm::IoCallback *) STUB_RETVAL(false)
26 BandwidthBucket *BandwidthBucket::SelectBucket(fde *) STUB_RETVAL(nullptr)
27 void BandwidthBucket::reduceBucket(const int) STUB
28 
29 #endif /* USE_DELAY_POOLS */
30 
#define STUB_RETVAL(x)
Definition: STUB.h:42
DelayId()
Definition: DelayId.cc:28
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:16
~DelayId()
Definition: DelayId.cc:37
Definition: fde.h:51
Base class for Squid-to-client bandwidth limiting.
#define STUB
macro to stub a void function.
Definition: STUB.h:34
void refillBucket()
Increases the bucket level with the writeSpeedLimit speed.
#define STUB_NOP
Definition: STUB.h:38
void delayRead(const AsyncCallPointer &)
Definition: DelayId.cc:163

 

Introduction

Documentation

Support

Miscellaneous