#include <PeerDigest.h>

Collaboration diagram for DigestFetchState:

Public Member Functions

void * operator new (size_t size)
 
void operator delete (void *address)
 
void * toCbdata () noexcept
 
 DigestFetchState (PeerDigest *, HttpRequest *)
 
 ~DigestFetchState ()
 

Public Attributes

PeerDigestpd
 
StoreEntryentry
 
StoreEntryold_entry
 
store_clientsc
 
store_clientold_sc
 
HttpRequestrequest
 
int offset
 
uint32_t mask_offset
 
time_t start_time
 
time_t resp_time
 
time_t expires
 
struct {
   int   msg
 
   int   bytes
 
sent
 
struct {
   int   msg
 
   int   bytes
 
recv
 
char buf [SM_PAGE_SIZE]
 
ssize_t bufofs
 
digest_read_state_t state
 

Static Private Attributes

static cbdata_type CBDATA_DigestFetchState = CBDATA_UNKNOWN
 

Detailed Description

Definition at line 44 of file PeerDigest.h.

Constructor & Destructor Documentation

DigestFetchState::DigestFetchState ( PeerDigest aPd,
HttpRequest req 
)

Definition at line 92 of file peer_digest.cc.

References buf, HTTPMSGLOCK(), recv, request, and sent.

DigestFetchState::~DigestFetchState ( )

Definition at line 118 of file peer_digest.cc.

References assert, entry, HTTPMSGUNLOCK(), NULL, pd, request, sc, storeUnregister(), and StoreEntry::unlock().

Member Function Documentation

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

Definition at line 46 of file PeerDigest.h.

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

Definition at line 46 of file PeerDigest.h.

void* DigestFetchState::toCbdata ( )
inlinenoexcept

Definition at line 46 of file PeerDigest.h.

Member Data Documentation

char DigestFetchState::buf[SM_PAGE_SIZE]

Definition at line 69 of file PeerDigest.h.

Referenced by DigestFetchState(), peerDigestHandleReply(), and peerDigestRequest().

ssize_t DigestFetchState::bufofs

Definition at line 70 of file PeerDigest.h.

Referenced by peerDigestHandleReply().

int DigestFetchState::bytes

Definition at line 66 of file PeerDigest.h.

Referenced by peerDigestFetchFinish(), peerDigestFetchSetStats(), and peerDigestPDFinish().

cbdata_type DigestFetchState::CBDATA_DigestFetchState = CBDATA_UNKNOWN
staticprivate

Definition at line 46 of file PeerDigest.h.

time_t DigestFetchState::expires

Definition at line 62 of file PeerDigest.h.

Referenced by peerDigestFetchSetStats().

uint32_t DigestFetchState::mask_offset

Definition at line 59 of file PeerDigest.h.

Referenced by peerDigestFetchedEnough(), and peerDigestSwapInMask().

int DigestFetchState::msg

Definition at line 65 of file PeerDigest.h.

Referenced by peerDigestFetchFinish(), peerDigestFetchSetStats(), and peerDigestPDFinish().

int DigestFetchState::offset
StoreEntry* DigestFetchState::old_entry

Definition at line 54 of file PeerDigest.h.

Referenced by peerDigestFetchFinish(), peerDigestFetchReply(), and peerDigestRequest().

store_client* DigestFetchState::old_sc

Definition at line 56 of file PeerDigest.h.

Referenced by peerDigestFetchFinish(), peerDigestFetchReply(), and peerDigestRequest().

struct { ... } DigestFetchState::recv
HttpRequest* DigestFetchState::request
time_t DigestFetchState::resp_time

Definition at line 61 of file PeerDigest.h.

Referenced by peerDigestFetchSetStats(), and peerDigestPDFinish().

store_client* DigestFetchState::sc
struct { ... } DigestFetchState::sent
time_t DigestFetchState::start_time

Definition at line 60 of file PeerDigest.h.

Referenced by peerDigestFetchSetStats().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors