stub_DelayId.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2021 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(NULL), 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:41
DelayId()
Definition: DelayId.cc:27
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.
Definition: AcceptLimiter.h:17
~DelayId()
Definition: DelayId.cc:36
Definition: fde.h:52
#define NULL
Definition: types.h:166
Base class for Squid-to-client bandwidth limiting.
void delayRead(DeferredRead const &)
Definition: DelayId.cc:167
#define STUB
macro to stub a void function.
Definition: STUB.h:33
void refillBucket()
Increases the bucket level with the writeSpeedLimit speed.
#define STUB_NOP
Definition: STUB.h:37
#define false
Definition: GnuRegex.c:233

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors