#include <PeerDigest.h>

Collaboration diagram for PeerDigest:

Public Member Functions

void * operator new (size_t size)
 
void operator delete (void *address)
 
void * toCbdata () noexcept
 
 PeerDigest (CachePeer *)
 
 ~PeerDigest ()
 

Public Attributes

CachePeerpeer = nullptr
 
CacheDigestcd = nullptr
 
String host
 
const char * req_result = nullptr
 
struct {
   bool   needed = false
 
   bool   usable = false
 
   bool   requested = false
 
flags
 
struct {
   time_t   initialized = 0
 
   time_t   needed = 0
 
   time_t   next_check = 0
 
   time_t   retry_delay = 0
 
   time_t   requested = 0
 
   time_t   req_delay = 0
 
   time_t   received = 0
 
   time_t   disabled = 0
 
times
 
struct {
   CacheDigestGuessStats   guess
 
   int   used_count = 0
 
   struct {
      int   msgs = 0
 
      ByteCounter   kbytes
 
   }   sent
 
   struct {
      int   msgs = 0
 
      ByteCounter   kbytes
 
   }   recv
 
stats
 

Static Private Attributes

static cbdata_type CBDATA_PeerDigest = CBDATA_UNKNOWN
 

Detailed Description

Definition at line 74 of file PeerDigest.h.

Constructor & Destructor Documentation

PeerDigest::PeerDigest ( CachePeer p)

Definition at line 69 of file peer_digest.cc.

References assert, cbdataReference, CachePeer::host, host, peer, squid_curtime, and times.

PeerDigest::~PeerDigest ( )

Definition at line 169 of file peer_digest.cc.

References cd.

Member Function Documentation

void PeerDigest::operator delete ( void *  address)
inline

Definition at line 76 of file PeerDigest.h.

void* PeerDigest::operator new ( size_t  size)
inline

Definition at line 76 of file PeerDigest.h.

void* PeerDigest::toCbdata ( )
inlinenoexcept

Definition at line 76 of file PeerDigest.h.

Member Data Documentation

cbdata_type PeerDigest::CBDATA_PeerDigest = CBDATA_UNKNOWN
staticprivate

Definition at line 76 of file PeerDigest.h.

time_t PeerDigest::disabled = 0

Definition at line 102 of file PeerDigest.h.

CacheDigestGuessStats PeerDigest::guess

Definition at line 106 of file PeerDigest.h.

Referenced by peerDigestStatsReport().

time_t PeerDigest::initialized = 0

Definition at line 95 of file PeerDigest.h.

ByteCounter PeerDigest::kbytes

Definition at line 111 of file PeerDigest.h.

int PeerDigest::msgs = 0

Definition at line 110 of file PeerDigest.h.

bool PeerDigest::needed = false

there were requests for this digest

Definition at line 88 of file PeerDigest.h.

Referenced by peerDigestLookup(), and peerDigestNeeded().

time_t PeerDigest::needed = 0

Definition at line 96 of file PeerDigest.h.

time_t PeerDigest::next_check = 0

Definition at line 97 of file PeerDigest.h.

Referenced by peerDigestCheck(), and peerDigestSetCheck().

CachePeer* PeerDigest::peer = nullptr

pointer back to peer structure, argh

Definition at line 82 of file PeerDigest.h.

Referenced by PeerDigest(), peerDigestCheck(), peerDigestDestroy(), peerDigestFetchedEnough(), and peerDigestRequest().

time_t PeerDigest::received = 0

Definition at line 101 of file PeerDigest.h.

Referenced by peerDigestCheck(), and peerDigestPDFinish().

struct { ... } PeerDigest::recv
time_t PeerDigest::req_delay = 0

Definition at line 100 of file PeerDigest.h.

Referenced by peerDigestPDFinish(), and peerDigestStatsReport().

const char* PeerDigest::req_result = nullptr

text status of the last request

Definition at line 85 of file PeerDigest.h.

Referenced by peerDigestPDFinish(), peerDigestReqFinish(), peerDigestRequest(), and peerDigestStatsReport().

bool PeerDigest::requested = false

in process of receiving [fresh] digest

Definition at line 90 of file PeerDigest.h.

Referenced by peerDigestCheck(), peerDigestLookup(), peerDigestNotePeerGone(), peerDigestReqFinish(), and peerDigestRequest().

time_t PeerDigest::requested = 0

Definition at line 99 of file PeerDigest.h.

time_t PeerDigest::retry_delay = 0

Definition at line 98 of file PeerDigest.h.

Referenced by peerDigestIncDelay(), peerDigestReqFinish(), and peerDigestStatsReport().

struct { ... } PeerDigest::sent
struct { ... } PeerDigest::stats
bool PeerDigest::usable = false

can be used for lookups

Definition at line 89 of file PeerDigest.h.

Referenced by peerDigestLookup(), and peerDigestPDFinish().

int PeerDigest::used_count = 0

Definition at line 107 of file PeerDigest.h.


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors