
Go to the source code of this file.
Functions | |
void | peerSourceHashInit (void) |
CachePeer * | peerSourceHashSelectParent (PeerSelector *) |
Function Documentation
◆ peerSourceHashInit()
void peerSourceHashInit | ( | void | ) |
Definition at line 39 of file peer_sourcehash.cc.
References assert, cbdataReference, cbdataReferenceDone, Config, double, int, n_sourcehash_peers, CachePeer::name, CachePeer::next, CachePeer::options, PEER_PARENT, SquidConfig::peers, peerSortWeight(), peerSourceHashRegisterWithCacheManager(), ROTATE_LEFT, safe_free, CachePeer::sourcehash, sourcehash_peers, CachePeer::type, CachePeer::weight, and xcalloc().
Referenced by serverConnectionsOpen().
◆ peerSourceHashSelectParent()
CachePeer * peerSourceHashSelectParent | ( | PeerSelector * | ps | ) |
Definition at line 146 of file peer_sourcehash.cc.
References assert, HttpRequest::client_addr, debugs, MAX_IPSTRLEN, n_sourcehash_peers, peerHTTPOkay(), PeerSelector::request, ROTATE_LEFT, CachePeer::sourcehash, sourcehash_peers, and Ip::Address::toStr().
Referenced by PeerSelector::selectSomeParent().