Squid Web Cache master
Loading...
Searching...
No Matches
stub_DelayId.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2025 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
20DelayId::DelayId(): pool_(0), compositeId(nullptr), markedAsNoDelay(false) {}
22
25bool BandwidthBucket::applyQuota(int &, Comm::IoCallback *) STUB_RETVAL(false)
26BandwidthBucket *BandwidthBucket::SelectBucket(fde *) STUB_RETVAL(nullptr)
27void BandwidthBucket::reduceBucket(const int) STUB
28
29#endif /* USE_DELAY_POOLS */
30
#define STUB
macro to stub a void function.
Definition STUB.h:34
#define STUB_NOP
Definition STUB.h:38
#define STUB_RETVAL(x)
Definition STUB.h:42
Base class for Squid-to-client bandwidth limiting.
void refillBucket()
Increases the bucket level with the writeSpeedLimit speed.
~DelayId()
Definition DelayId.cc:39
void delayRead(const AsyncCallPointer &)
Definition DelayId.cc:144
DelayId()
Definition DelayId.cc:28
Definition fde.h:52
Abstraction layer for TCP, UDP, TLS, UDS and filedescriptor sockets.