#include <PeerDigest.h>
Public Member Functions | |
void * | operator new (size_t size) |
void | operator delete (void *address) |
void * | toCbdata () noexcept |
DigestFetchState (PeerDigest *, HttpRequest *) | |
~DigestFetchState () | |
Public Attributes | |
PeerDigest * | pd |
StoreEntry * | entry |
StoreEntry * | old_entry |
store_client * | sc |
store_client * | old_sc |
HttpRequest * | request |
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()
|
inline |
Definition at line 46 of file PeerDigest.h.
◆ operator new()
|
inline |
Definition at line 46 of file PeerDigest.h.
◆ 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
|
staticprivate |
Definition at line 46 of file PeerDigest.h.
◆ entry
StoreEntry* DigestFetchState::entry |
Definition at line 53 of file PeerDigest.h.
Referenced by ~DigestFetchState(), peerDigestFetchedEnough(), peerDigestFetchFinish(), peerDigestFetchReply(), peerDigestFetchSetStats(), peerDigestHandleReply(), peerDigestPDFinish(), peerDigestReqFinish(), peerDigestRequest(), and peerDigestSwapInCBlock().
◆ 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 |
Definition at line 58 of file PeerDigest.h.
Referenced by peerDigestFetchedEnough(), peerDigestFetchReply(), and peerDigestHandleReply().
◆ 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
PeerDigest* DigestFetchState::pd |
Definition at line 52 of file PeerDigest.h.
Referenced by ~DigestFetchState(), peerDigestFetchAbort(), peerDigestFetchedEnough(), peerDigestFetchReply(), peerDigestFetchStop(), peerDigestHandleReply(), peerDigestPDFinish(), peerDigestReqFinish(), peerDigestSwapInCBlock(), and peerDigestSwapInMask().
◆
struct { ... } DigestFetchState::recv |
Referenced by DigestFetchState(), peerDigestFetchFinish(), peerDigestFetchSetStats(), and peerDigestPDFinish().
◆ request
HttpRequest* DigestFetchState::request |
Definition at line 57 of file PeerDigest.h.
Referenced by DigestFetchState(), ~DigestFetchState(), peerDigestFetchFinish(), and peerDigestFetchSetStats().
◆ 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 |
Definition at line 55 of file PeerDigest.h.
Referenced by ~DigestFetchState(), peerDigestFetchReply(), peerDigestHandleReply(), and peerDigestRequest().
◆
struct { ... } DigestFetchState::sent |
Referenced by DigestFetchState(), peerDigestFetchFinish(), peerDigestFetchSetStats(), and peerDigestPDFinish().
◆ 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 |
Definition at line 71 of file PeerDigest.h.
Referenced by peerDigestFetchReply(), peerDigestHandleReply(), and peerDigestSwapInCBlock().
The documentation for this class was generated from the following files:
- src/PeerDigest.h
- src/peer_digest.cc