]>
Commit | Line | Data |
---|---|---|
71787d05 AJ |
1 | #ifndef ICMP_NET_DB_H |
2 | #define ICMP_NET_DB_H | |
3 | ||
4 | ||
5 | class IPAddress; | |
6 | class StoreEntry; | |
7 | class HttpRequest; | |
8 | ||
9 | /* for struct peer */ | |
10 | #include "structs.h" | |
11 | ||
12 | ||
13 | SQUIDCEXTERN void netdbInit(void); | |
14 | ||
15 | SQUIDCEXTERN void netdbHandlePingReply(const IPAddress &from, int hops, int rtt); | |
16 | SQUIDCEXTERN void netdbPingSite(const char *hostname); | |
17 | SQUIDCEXTERN void netdbDump(StoreEntry *); | |
18 | ||
19 | #if 0 // AYJ: Looks to be unused now. | |
20 | SQUIDCEXTERN int netdbHops(IPAddress &); | |
21 | #endif | |
22 | ||
23 | SQUIDCEXTERN void netdbFreeMemory(void); | |
24 | SQUIDCEXTERN int netdbHostHops(const char *host); | |
25 | SQUIDCEXTERN int netdbHostRtt(const char *host); | |
26 | SQUIDCEXTERN void netdbUpdatePeer(HttpRequest *, peer * e, int rtt, int hops); | |
27 | ||
28 | SQUIDCEXTERN void netdbDeleteAddrNetwork(IPAddress &addr); | |
29 | SQUIDCEXTERN void netdbBinaryExchange(StoreEntry *); | |
30 | SQUIDCEXTERN void netdbExchangeStart(void *); | |
31 | ||
32 | SQUIDCEXTERN void netdbExchangeUpdatePeer(IPAddress &, peer *, double, double); | |
33 | SQUIDCEXTERN peer *netdbClosestParent(HttpRequest *); | |
34 | SQUIDCEXTERN void netdbHostData(const char *host, int *samp, int *rtt, int *hops); | |
35 | ||
36 | ||
37 | #endif /* ICMP_NET_DB_H */ |