stub_DelayId.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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)
27 void BandwidthBucket::reduceBucket(const int) STUB
28 
29 #endif /* USE_DELAY_POOLS */
30 
Base class for Squid-to-client bandwidth limiting.
void delayRead(DeferredRead const &)
Definition: DelayId.cc:169
void refillBucket()
Increases the bucket level with the writeSpeedLimit speed.
#define STUB_RETVAL(x)
Definition: STUB.h:41
virtual bool applyQuota(int &nleft, Comm::IoCallback *state) override
Definition: comm.cc:1374
#define STUB
macro to stub a void function.
Definition: STUB.h:33
static BandwidthBucket * SelectBucket(fde *f)
DelayId()
Definition: DelayId.cc:27
Definition: fde.h:49
#define STUB_NOP
Definition: STUB.h:37
~DelayId()
Definition: DelayId.cc:36
#define NULL
Definition: types.h:166
#define false
Definition: GnuRegex.c:233
virtual void reduceBucket(int len) override
Decreases the bucket level.
Definition: comm.cc:1405

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors