]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/DelayId.h
227c8f5dc71b2fe5c07d2ab45214c8f5b06cf438
2 * Copyright (C) 1996-2016 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 "DelayIdComposite.h"
16 class ClientHttpRequest
;
19 /// \ingroup DelayPoolsAPI
24 static DelayId
DelayClient(ClientHttpRequest
*, HttpReply
*reply
= nullptr);
26 DelayId (unsigned short);
28 unsigned short pool() const;
29 DelayIdComposite::Pointer
compositePosition();
30 DelayIdComposite::Pointer
const compositePosition() const;
31 void compositePosition(DelayIdComposite::Pointer
);
32 bool operator == (DelayId
const &rhs
) const;
33 operator bool() const;
34 int bytesWanted(int min
, int max
) const;
35 void bytesIn (int qty
);
36 void setNoDelay(bool const);
37 void delayRead(DeferredRead
const &);
41 DelayIdComposite::Pointer compositeId
;
45 #endif /* USE_DELAY_POOLS */
46 #endif /* SQUID_DELAYID_H */