]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/DelayId.h
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_DELAYID_H
10 #define SQUID_DELAYID_H
14 #include "base/forward.h"
15 #include "DelayIdComposite.h"
17 class ClientHttpRequest
;
20 /// \ingroup DelayPoolsAPI
25 static DelayId
DelayClient(ClientHttpRequest
*, HttpReply
*reply
= nullptr);
27 DelayId (unsigned short);
29 unsigned short pool() const;
30 DelayIdComposite::Pointer
compositePosition();
31 DelayIdComposite::Pointer
const compositePosition() const;
32 void compositePosition(DelayIdComposite::Pointer
);
33 bool operator == (DelayId
const &rhs
) const;
34 operator bool() const;
35 int bytesWanted(int min
, int max
) const;
36 void bytesIn (int qty
);
37 void setNoDelay(bool const);
38 void delayRead(const AsyncCallPointer
&);
42 DelayIdComposite::Pointer compositeId
;
46 #endif /* USE_DELAY_POOLS */
47 #endif /* SQUID_DELAYID_H */