/*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#if USE_CACHE_DIGESTS
#include "cbdata.h"
-/* for CacheDigestGuessStats */
#include "StatCounters.h"
class Version
class DigestFetchState
{
+ CBDATA_CLASS(DigestFetchState);
+
public:
+ DigestFetchState(PeerDigest *,HttpRequest *);
+ ~DigestFetchState();
+
PeerDigest *pd;
StoreEntry *entry;
StoreEntry *old_entry;
store_client *old_sc;
HttpRequest *request;
int offset;
- int mask_offset;
+ uint32_t mask_offset;
time_t start_time;
time_t resp_time;
time_t expires;
struct {
int msg;
int bytes;
- }
+ } sent, recv;
- sent, recv;
char buf[SM_PAGE_SIZE];
ssize_t bufofs;
digest_read_state_t state;
struct {
int msgs;
- kb_t kbytes;
+ ByteCounter kbytes;
} sent, recv;
} stats;
};