]> 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-2016 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 "enums.h"
16 #include "ip/Address.h"
17 #include "LogTags.h"
18
19 namespace Ip
20 {
21 class Address;
22 }
23
24 class StoreEntry;
25 class ClientInfo;
26
27 void clientdbUpdate(const Ip::Address &, const LogTags &, AnyP::ProtocolType, size_t);
28 int clientdbCutoffDenied(const Ip::Address &);
29 void clientdbDump(StoreEntry *);
30 void clientdbFreeMemory(void);
31 int clientdbEstablished(const Ip::Address &, int);
32
33 #if USE_DELAY_POOLS
34 void clientdbSetWriteLimiter(ClientInfo * info, const int writeSpeedLimit,const double initialBurst,const double highWatermark);
35 ClientInfo * clientdbGetInfo(const Ip::Address &addr);
36 #endif
37
38 #if SQUID_SNMP
39 Ip::Address *client_entry(Ip::Address *current);
40 #endif
41
42 #endif /* SQUID_CLIENT_DB_H_ */
43