#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::DigestFetchState ( PeerDigest aPd,
HttpRequest req 
)

Definition at line 79 of file peer_digest.cc.

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

◆ ~DigestFetchState()

DigestFetchState::~DigestFetchState ( )

Definition at line 105 of file peer_digest.cc.

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

Member Function Documentation

◆ operator delete()

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

Definition at line 46 of file PeerDigest.h.

◆ operator new()

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

Definition at line 46 of file PeerDigest.h.

◆ toCbdata()

void * DigestFetchState::toCbdata ( )
inlinenoexcept

Definition at line 46 of file PeerDigest.h.

Member Data Documentation

◆ buf

char DigestFetchState::buf[SM_PAGE_SIZE]

Definition at line 69 of file PeerDigest.h.

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

◆ bufofs

ssize_t DigestFetchState::bufofs

Definition at line 70 of file PeerDigest.h.

Referenced by peerDigestHandleReply().

◆ bytes

int DigestFetchState::bytes

Definition at line 66 of file PeerDigest.h.

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

◆ CBDATA_DigestFetchState

cbdata_type DigestFetchState::CBDATA_DigestFetchState = CBDATA_UNKNOWN
staticprivate

Definition at line 46 of file PeerDigest.h.

◆ entry

◆ expires

time_t DigestFetchState::expires

Definition at line 62 of file PeerDigest.h.

Referenced by peerDigestFetchSetStats().

◆ mask_offset

uint32_t DigestFetchState::mask_offset

Definition at line 59 of file PeerDigest.h.

Referenced by peerDigestFetchedEnough(), and peerDigestSwapInMask().

◆ msg

int DigestFetchState::msg

Definition at line 65 of file PeerDigest.h.

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

◆ offset

int DigestFetchState::offset

◆ old_entry

StoreEntry* DigestFetchState::old_entry

Definition at line 54 of file PeerDigest.h.

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

◆ old_sc

store_client* DigestFetchState::old_sc

Definition at line 56 of file PeerDigest.h.

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

◆ pd

◆ 

struct { ... } DigestFetchState::recv

◆ request

HttpRequest* DigestFetchState::request

◆ resp_time

time_t DigestFetchState::resp_time

Definition at line 61 of file PeerDigest.h.

Referenced by peerDigestFetchSetStats(), and peerDigestPDFinish().

◆ sc

store_client* DigestFetchState::sc

◆ 

struct { ... } DigestFetchState::sent

◆ start_time

time_t DigestFetchState::start_time

Definition at line 60 of file PeerDigest.h.

Referenced by peerDigestFetchSetStats().

◆ state

digest_read_state_t DigestFetchState::state

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors