]> git.ipfire.org Git - thirdparty/squid.git/blob - src/client_db.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / client_db.h
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 00 Client Database */
10
11 #ifndef SQUID_CLIENT_DB_H_
12 #define SQUID_CLIENT_DB_H_
13
14 #include "anyp/ProtocolType.h"
15 #include "ip/Address.h"
16 #include "LogTags.h"
17
18 namespace Ip
19 {
20 class Address;
21 }
22
23 class StoreEntry;
24 class ClientInfo;
25
26 void clientdbUpdate(const Ip::Address &, const LogTags &, AnyP::ProtocolType, size_t);
27 int clientdbCutoffDenied(const Ip::Address &);
28 void clientdbDump(StoreEntry *);
29 void clientdbFreeMemory(void);
30 int clientdbEstablished(const Ip::Address &, int);
31
32 #if USE_DELAY_POOLS
33 void clientdbSetWriteLimiter(ClientInfo * info, const int writeSpeedLimit,const double initialBurst,const double highWatermark);
34 ClientInfo * clientdbGetInfo(const Ip::Address &addr);
35 #endif
36
37 #if SQUID_SNMP
38 Ip::Address *client_entry(Ip::Address *current);
39 #endif
40
41 #endif /* SQUID_CLIENT_DB_H_ */
42