peer_sourcehash.cc
Go to the documentation of this file.
99 qsort(rawSourceHashPeers.data(), rawSourceHashPeers.size(), sizeof(decltype(rawSourceHashPeers)::value_type), peerSortWeight);
Definition: CachePeer.h:28
static void peerSourceHashRegisterWithCacheManager(void)
Definition: peer_sourcehash.cc:143
char * toStr(char *buf, const unsigned int blen, int force=AF_UNSPEC) const
Definition: Address.cc:812
#define MAX_IPSTRLEN
Length of buffer that needs to be allocated to old a null-terminated IP-string.
Definition: forward.h:25
Definition: HttpRequest.h:48
Definition: RunnersRegistry.h:37
std::vector< CbcPointer< CachePeer >, PoolingAllocator< CbcPointer< CachePeer > > > SelectedCachePeers
Definition: CachePeers.h:63
std::vector< CachePeer *, PoolingAllocator< CachePeer * > > RawCachePeers
Temporary, local storage of raw pointers to zero or more Config.peers.
Definition: CachePeers.h:66
DefineRunnerRegistrator(PeerSourceHashRr)
static int peerSortWeight(const void *a, const void *b)
Definition: peer_sourcehash.cc:39
CachePeer * peerSourceHashSelectParent(PeerSelector *ps)
Definition: peer_sourcehash.cc:150
static auto & SourceHashPeers()
sourcehash peers ordered by their sourcehash weight
Definition: peer_sourcehash.cc:29
reacts to RegisteredRunner events relevant to this module
Definition: peer_sourcehash.cc:132
Definition: Store.h:37
void RegisterAction(char const *action, char const *desc, OBJH *handler, Protected, Atomic, Format)
Definition: Registration.cc:54
Definition: PeerSelectState.h:59
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products