#include "base/forward.h"#include "CachePeer.h"#include "mem/PoolingAllocator.h"#include <memory>#include <vector>

Go to the source code of this file.
Classes | |
| class | CachePeers |
| cache_peer configuration storage More... | |
Typedefs | |
| using | SelectedCachePeers = std::vector< CbcPointer< CachePeer >, PoolingAllocator< CbcPointer< CachePeer > > > |
| using | RawCachePeers = std::vector< CachePeer *, PoolingAllocator< CachePeer * > > |
| Temporary, local storage of raw pointers to zero or more Config.peers. More... | |
Functions | |
| const CachePeers & | CurrentCachePeers () |
| void | DeleteConfigured (CachePeer *) |
| destroys the given peer after removing it from the set of configured peers More... | |
Typedef Documentation
◆ RawCachePeers
| using RawCachePeers = std::vector<CachePeer *, PoolingAllocator<CachePeer*> > |
Definition at line 66 of file CachePeers.h.
◆ SelectedCachePeers
| using SelectedCachePeers = std::vector< CbcPointer<CachePeer>, PoolingAllocator< CbcPointer<CachePeer> > > |
Weak pointers to zero or more Config.peers. Users must specify the selection algorithm and the order of entries.
Definition at line 63 of file CachePeers.h.
Function Documentation
◆ CurrentCachePeers()
| const CachePeers& CurrentCachePeers | ( | ) |
All configured cache_peers that are still available/relevant.
- Returns
- an empty container if no cache_peers were configured or all configured cache_peers were removed (e.g., by DeleteConfigured()).
Definition at line 43 of file CachePeers.cc.
References Config, and SquidConfig::peers.
Referenced by carpInit(), configDoConfigure(), findCachePeerByName(), findUsableParentAtHostname(), getDefaultParent(), getFirstUpParent(), getRoundRobinParent(), getWeightedRoundRobinParent(), htcpHandleClr(), neighbors_init(), neighborsCount(), neighborsHtcpClear(), peer_Inst(), peerClearRR(), peerDnsRefreshStart(), peerSourceHashInit(), peerUserHashInit(), PeerSelector::selectAllParents(), snmp_meshPtblFn(), statPeerSelect(), PeerPoolMgrsRr::syncConfig(), and whichPeer().
◆ DeleteConfigured()
| void DeleteConfigured | ( | CachePeer * | ) |
Definition at line 53 of file CachePeers.cc.
References Assure, Config, SquidConfig::peers, and CachePeers::remove().
Referenced by neighbors_init(), and neighborsUdpAck().
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
