peer_select.cc File Reference
#include "squid.h"
#include "acl/FilledChecklist.h"
#include "base/InstanceId.h"
#include "CachePeer.h"
#include "carp.h"
#include "client_side.h"
#include "dns/LookupDetails.h"
#include "errorpage.h"
#include "event.h"
#include "FwdState.h"
#include "globals.h"
#include "hier_code.h"
#include "htcp.h"
#include "http/Stream.h"
#include "HttpRequest.h"
#include "icmp/net_db.h"
#include "ICP.h"
#include "ip/tools.h"
#include "ipcache.h"
#include "neighbors.h"
#include "peer_sourcehash.h"
#include "peer_userhash.h"
#include "PeerSelectState.h"
#include "SquidConfig.h"
#include "SquidTime.h"
#include "Store.h"
Include dependency graph for peer_select.cc:

Go to the source code of this file.

Classes

class  FwdServer
 
class  PeerSelectionDumper
 a helper class to report a selected destination (for debugging) More...
 

Functions

static std::ostream & operator<< (std::ostream &os, const PeerSelectionDumper &fsd)
 prints PeerSelectionDumper (for debugging) More...
 
static int peerSelectIcpPing (PeerSelector *ps, int direct, StoreEntry *entry)
 
static void peerSelect (PeerSelectionInitiator *initiator, HttpRequest *request, AccessLogEntry::Pointer const &al, StoreEntry *entry)
 
bool peerAllowedToUse (const CachePeer *, PeerSelector *)
 
void peerSelectInit (void)
 
 InstanceIdDefinitions (PeerSelector,"PeerSelector")
 

Variables

struct {
   int   timeouts
 
PeerStats
 
static const char * DirectStr []
 

Function Documentation

InstanceIdDefinitions ( PeerSelector  ,
"PeerSelector"   
)
static std::ostream& operator<< ( std::ostream &  os,
const PeerSelectionDumper fsd 
)
static
void peerSelectInit ( void  )

Definition at line 765 of file peer_select.cc.

References PeerStats.

Referenced by serverConnectionsOpen().

Variable Documentation

const char* DirectStr[]
static
Initial value:
= {
"DIRECT_UNKNOWN",
"DIRECT_NO",
"DIRECT_MAYBE",
"DIRECT_YES"
}

Definition at line 67 of file peer_select.cc.

Referenced by PeerSelector::checkAlwaysDirectDone(), PeerSelector::checkNeverDirectDone(), and PeerSelector::selectMore().

struct { ... } PeerStats
int timeouts

Definition at line 64 of file peer_select.cc.

Referenced by main_loop().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors