#include <CachePeer.h>

Collaboration diagram for CachePeer:

Classes

struct  icp_
 

Public Member Functions

 CachePeer ()=default
 
 ~CachePeer ()
 

Public Attributes

u_int index = 0
 
char * name = nullptr
 
char * host = nullptr
 
peer_t type = PEER_NONE
 
Ip::Address in_addr
 
struct {
   int   pings_sent = 0
 
   int   pings_acked = 0
 
   int   fetches = 0
 
   int   rtt = 0
 
   int   ignored_replies = 0
 
   int   n_keepalives_sent = 0
 
   int   n_keepalives_recv = 0
 
   time_t   probe_start = 0
 
   time_t   last_query = 0
 
   time_t   last_reply = 0
 
   time_t   last_connect_failure = 0
 
   time_t   last_connect_probe = 0
 
   int   logged_state = PEER_ALIVE
 so we can print dead/revived msgs More...
 
   int   conn_open = 0
 current opened connections More...
 
stats
 
struct CachePeer::icp_ icp
 
struct {
   double   version = 0.0
 
   int   counts [2] = {0, 0}
 
   unsigned short   port = 0
 
htcp
 
unsigned short http_port = CACHE_HTTP_PORT
 
NeighborTypeDomainListtypelist = nullptr
 
acl_accessaccess = nullptr
 
struct {
   bool   proxy_only = false
 
   bool   no_query = false
 
   bool   background_ping = false
 
   bool   no_digest = false
 
   bool   default_parent = false
 
   bool   roundrobin = false
 
   bool   weighted_roundrobin = false
 
   bool   mcast_responder = false
 
   bool   closest_only = false
 
   bool   htcp = false
 
   bool   htcp_oldsquid = false
 
   bool   htcp_no_clr = false
 
   bool   htcp_no_purge_clr = false
 
   bool   htcp_only_clr = false
 
   bool   htcp_forward_clr = false
 
   bool   no_netdb_exchange = false
 
   bool   no_delay = false
 
   bool   allow_miss = false
 
   bool   carp = false
 
   struct {
      bool   set = false
 
      bool   scheme = false
 
      bool   host = false
 
      bool   port = false
 
      bool   path = false
 
      bool   params = false
 
   }   carp_key
 
   bool   userhash = false
 
   bool   sourcehash = false
 
   bool   originserver = false
 
   bool   no_tproxy = false
 
   bool   mcast_siblings = false
 
   bool   auth_no_keytab = false
 
options
 
int weight = 1
 
int basetime = 0
 
struct {
   double   avg_n_members = 0.0
 
   int   n_times_counted = 0
 
   int   n_replies_expected = 0
 
   int   ttl = 0
 
   int   id = 0
 
   struct {
      bool   count_event_pending = false
 
      bool   counting = false
 
   }   flags
 
mcast
 
PeerDigestdigest = nullptr
 
char * digest_url = nullptr
 
int tcp_up = 0
 
bool reprobe = false
 whether to do another TCP probe after current TCP probes More...
 
Ip::Address addresses [10]
 
int n_addresses = 0
 
int rr_count = 0
 
CachePeernext = nullptr
 
int testing_now = 0
 
struct {
   unsigned int   hash = 0
 
   double   load_multiplier = 0.0
 
   double   load_factor = 0.0
 normalized weight value More...
 
carp
 
struct {
   unsigned int   hash = 0
 
   double   load_multiplier = 0.0
 
   double   load_factor = 0.0
 normalized weight value More...
 
userhash
 
struct {
   unsigned int   hash = 0
 
   double   load_multiplier = 0.0
 
   double   load_factor = 0.0
 normalized weight value More...
 
sourcehash
 
char * login = nullptr
 
time_t connect_timeout_raw = 0
 connect_timeout; use peerConnectTimeout() instead! More...
 
int connect_fail_limit = 0
 
int max_conn = 0
 
struct {
   PconnPool *   pool = nullptr
 idle connection pool for this peer More...
 
   CbcPointer< PeerPoolMgr >   mgr
 pool manager More...
 
   int   limit = 0
 the limit itself More...
 
   bool   waitingForClose = false
 a conn must close before we open a standby conn More...
 
standby
 optional "cache_peer standby=limit" feature More...
 
char * domain = nullptr
 Forced domain. More...
 
Security::PeerOptions secure
 security settings for peer connection More...
 
Security::ContextPointer sslContext
 
Security::SessionStatePointer sslSession
 
int front_end_https = 0
 0 - off, 1 - on, 2 - auto More...
 
int connection_auth = 2
 0 - off, 1 - on, 2 - auto More...
 

Private Member Functions

 CBDATA_CLASS (CachePeer)
 

Detailed Description

Definition at line 31 of file CachePeer.h.

Constructor & Destructor Documentation

CachePeer::CachePeer ( )
default

Member Function Documentation

CachePeer::CBDATA_CLASS ( CachePeer  )
private

Member Data Documentation

acl_access* CachePeer::access = nullptr

Definition at line 80 of file CachePeer.h.

Referenced by dump_peer(), parse_peer_access(), peerAllowedToUse(), and ~CachePeer().

Ip::Address CachePeer::addresses[10]
bool CachePeer::allow_miss = false

Definition at line 104 of file CachePeer.h.

Referenced by dump_peer_options(), parse_peer(), and HttpStateData::sendRequest().

bool CachePeer::auth_no_keytab = false

Definition at line 123 of file CachePeer.h.

Referenced by FwdState::dispatch(), parse_peer(), switchToTunnel(), and tunnelConnectDone().

double CachePeer::avg_n_members = 0.0

Definition at line 130 of file CachePeer.h.

Referenced by peerCountMcastPeersDone().

bool CachePeer::background_ping = false

Definition at line 85 of file CachePeer.h.

Referenced by dump_peer_options(), parse_peer(), and peerWouldBePinged().

int CachePeer::basetime = 0
bool CachePeer::carp = false

Definition at line 105 of file CachePeer.h.

Referenced by carpCachemgr(), carpInit(), carpSelectParent(), dump_peer_options(), and parse_peer().

struct { ... } CachePeer::carp
struct { ... } CachePeer::carp_key

Referenced by carpSelectParent(), and parse_peer().

bool CachePeer::closest_only = false

Definition at line 91 of file CachePeer.h.

Referenced by dump_peer_options(), parse_peer(), peerHtcpParentMiss(), and peerIcpParentMiss().

int CachePeer::conn_open = 0

Definition at line 60 of file CachePeer.h.

Referenced by peerCanOpenMore(), and peerConnClosed().

int CachePeer::connect_fail_limit = 0

Definition at line 177 of file CachePeer.h.

Referenced by dump_peer_options(), parse_peer(), and peerConnectSucceded().

time_t CachePeer::connect_timeout_raw = 0

Definition at line 176 of file CachePeer.h.

Referenced by dump_peer_options(), parse_peer(), and peerConnectTimeout().

int CachePeer::connection_auth = 2
bool CachePeer::count_event_pending = false

Definition at line 137 of file CachePeer.h.

bool CachePeer::counting = false

Definition at line 138 of file CachePeer.h.

int CachePeer::counts[2] = {0, 0}

Definition at line 73 of file CachePeer.h.

Referenced by neighborAliveHtcp().

bool CachePeer::default_parent = false

Definition at line 87 of file CachePeer.h.

Referenced by dump_peer_options(), getDefaultParent(), and parse_peer().

PeerDigest* CachePeer::digest = nullptr
char* CachePeer::digest_url = nullptr

Definition at line 144 of file CachePeer.h.

Referenced by dump_peer_options(), parse_peer(), peerDigestRequest(), and ~CachePeer().

char* CachePeer::domain = nullptr
int CachePeer::fetches = 0
int CachePeer::front_end_https = 0

Definition at line 195 of file CachePeer.h.

Referenced by parse_peer(), and HttpStateData::sendRequest().

unsigned int CachePeer::hash = 0

Definition at line 158 of file CachePeer.h.

bool CachePeer::host = false

Definition at line 109 of file CachePeer.h.

bool CachePeer::htcp = false

Definition at line 93 of file CachePeer.h.

bool CachePeer::htcp_forward_clr = false

Definition at line 98 of file CachePeer.h.

Referenced by htcpForwardClr(), and parse_peer().

bool CachePeer::htcp_no_clr = false

Definition at line 95 of file CachePeer.h.

Referenced by dump_peer_options(), neighborsHtcpClear(), and parse_peer().

bool CachePeer::htcp_no_purge_clr = false

Definition at line 96 of file CachePeer.h.

Referenced by dump_peer_options(), neighborsHtcpClear(), and parse_peer().

bool CachePeer::htcp_oldsquid = false

Definition at line 94 of file CachePeer.h.

Referenced by dump_peer_options(), htcpClear(), htcpQuery(), and parse_peer().

bool CachePeer::htcp_only_clr = false

Definition at line 97 of file CachePeer.h.

Referenced by dump_peer_options(), neighborsUdpPing(), and parse_peer().

int CachePeer::id = 0

Definition at line 134 of file CachePeer.h.

Referenced by peerCountMcastPeersStart().

int CachePeer::ignored_replies = 0

Definition at line 51 of file CachePeer.h.

Referenced by neighborCountIgnored(), neighborIgnoreNonPeer(), and snmp_meshPtblFn().

u_int CachePeer::index = 0

Definition at line 39 of file CachePeer.h.

Referenced by parse_peer(), and snmp_meshPtblFn().

time_t CachePeer::last_connect_failure = 0

Definition at line 57 of file CachePeer.h.

Referenced by peerConnectFailedSilent().

time_t CachePeer::last_connect_probe = 0

Definition at line 58 of file CachePeer.h.

Referenced by peerProbeConnect(), and peerProbeIsBusy().

time_t CachePeer::last_query = 0

Definition at line 55 of file CachePeer.h.

Referenced by neighborsUdpPing(), and peerWouldBePinged().

time_t CachePeer::last_reply = 0

Definition at line 56 of file CachePeer.h.

Referenced by peerAlive().

int CachePeer::limit = 0
double CachePeer::load_factor = 0.0

Definition at line 160 of file CachePeer.h.

double CachePeer::load_multiplier = 0.0

Definition at line 159 of file CachePeer.h.

int CachePeer::logged_state = PEER_ALIVE

Definition at line 59 of file CachePeer.h.

Referenced by neighborsUdpPing(), peerAlive(), and peerConnectFailedSilent().

int CachePeer::max_conn = 0

Definition at line 178 of file CachePeer.h.

Referenced by dump_peer_options(), parse_peer(), and peerCanOpenMore().

bool CachePeer::mcast_responder = false

Definition at line 90 of file CachePeer.h.

Referenced by dump_peer_options(), ignoreMulticastReply(), parse_peer(), and peerWouldBePinged().

bool CachePeer::mcast_siblings = false

Definition at line 121 of file CachePeer.h.

Referenced by dump_peer_options(), neighborType(), parse_peer(), and peerAllowedToUse().

CbcPointer<PeerPoolMgr> CachePeer::mgr

Definition at line 183 of file CachePeer.h.

Referenced by peerAlive(), peerConnClosed(), and peerDNSConfigure().

int CachePeer::n_keepalives_recv = 0
int CachePeer::n_keepalives_sent = 0
int CachePeer::n_replies_expected = 0

Definition at line 132 of file CachePeer.h.

Referenced by neighborsUdpPing(), and peerCountMcastPeersDone().

int CachePeer::n_times_counted = 0

Definition at line 131 of file CachePeer.h.

Referenced by peerCountMcastPeersDone().

bool CachePeer::no_delay = false
bool CachePeer::no_digest = false

Definition at line 86 of file CachePeer.h.

Referenced by dump_peer_options(), and parse_peer().

bool CachePeer::no_netdb_exchange = false

Definition at line 100 of file CachePeer.h.

Referenced by dump_peer_options(), parse_peer(), and peerDNSConfigure().

bool CachePeer::no_query = false

Definition at line 84 of file CachePeer.h.

Referenced by dump_peer_options(), neighborUp(), parse_peer(), and peerWouldBePinged().

bool CachePeer::no_tproxy = false

Definition at line 119 of file CachePeer.h.

Referenced by dump_peer_options(), getOutgoingAddress(), and parse_peer().

bool CachePeer::params = false

Definition at line 112 of file CachePeer.h.

Referenced by Comm::ConnOpener::createFd(), and Comm::ConnOpener::sendAnswer().

bool CachePeer::path = false

Definition at line 111 of file CachePeer.h.

int CachePeer::pings_acked = 0
int CachePeer::pings_sent = 0

Definition at line 47 of file CachePeer.h.

Referenced by neighborsUdpPing(), and snmp_meshPtblFn().

unsigned short CachePeer::port = 0

Definition at line 74 of file CachePeer.h.

bool CachePeer::port = false

Definition at line 110 of file CachePeer.h.

time_t CachePeer::probe_start = 0

Definition at line 54 of file CachePeer.h.

Referenced by neighborsUdpPing(), neighborUp(), and peerAlive().

bool CachePeer::proxy_only = false

Definition at line 83 of file CachePeer.h.

Referenced by dump_peer_options(), HttpStateData::HttpStateData(), and parse_peer().

bool CachePeer::reprobe = false

Definition at line 149 of file CachePeer.h.

Referenced by peerProbeConnect(), and peerProbeConnectDone().

bool CachePeer::roundrobin = false

Definition at line 88 of file CachePeer.h.

Referenced by dump_peer_options(), getRoundRobinParent(), and parse_peer().

int CachePeer::rr_count = 0

Definition at line 153 of file CachePeer.h.

Referenced by getRoundRobinParent(), getWeightedRoundRobinParent(), and peerClearRR().

bool CachePeer::scheme = false

Definition at line 108 of file CachePeer.h.

bool CachePeer::set = false

Definition at line 107 of file CachePeer.h.

bool CachePeer::sourcehash = false
struct { ... } CachePeer::sourcehash
Security::ContextPointer CachePeer::sslContext

Definition at line 192 of file CachePeer.h.

Security::SessionStatePointer CachePeer::sslSession

Definition at line 193 of file CachePeer.h.

int CachePeer::tcp_up = 0

Definition at line 147 of file CachePeer.h.

Referenced by neighborUp(), peerAlive(), peerConnectFailedSilent(), and peerConnectSucceded().

int CachePeer::testing_now = 0

Definition at line 155 of file CachePeer.h.

Referenced by peerProbeConnect(), peerProbeConnectDone(), and peerProbeIsBusy().

int CachePeer::ttl = 0
NeighborTypeDomainList* CachePeer::typelist = nullptr

Definition at line 79 of file CachePeer.h.

Referenced by dump_peer(), neighborType(), parse_hostdomaintype(), and ~CachePeer().

bool CachePeer::userhash = false
struct { ... } CachePeer::userhash
double CachePeer::version = 0.0

Definition at line 72 of file CachePeer.h.

Referenced by neighborAliveHtcp().

bool CachePeer::waitingForClose = false

Definition at line 185 of file CachePeer.h.

Referenced by PeerPoolMgr::openNewConnection(), and peerConnClosed().

bool CachePeer::weighted_roundrobin = false

The documentation for this class was generated from the following files:

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors