RockIoState.h
Go to the documentation of this file.
void STRCB(void *their_data, const char *buf, ssize_t len, StoreIOState::Pointer self)
Definition: StoreIOState.h:29
Definition: RockIoRequests.h:22
Definition: forward.h:27
Definition: DiskFile.h:21
Definition: RockIoState.h:25
Definition: StoreMap.h:28
uint64_t repliesReceived
the number of successful responses we received from theFile
Definition: RockIoState.h:101
void callReaderBack(const char *buf, int rlen)
report (already sanitized/checked) I/O results to the read initiator
Definition: RockIoState.cc:167
bool stillWaiting() const
whether we are still waiting for the I/O results (i.e., not closed)
Definition: RockIoState.h:43
Definition: StoreMap.h:56
MEMPROXY_CLASS(IoState)
const Ipc::StoreMapSlice & currentReadableSlice() const
convenience wrapper returning the map slot we are reading now
Definition: RockIoState.cc:91
bool expectedReply(const IoXactionId receivedId)
Definition: RockIoState.cc:333
Definition: StoreIOState.h:17
void read_(char *buf, size_t size, off_t offset, STRCB *callback, void *callback_data) override
Definition: RockIoState.cc:97
void finishedWriting(const int errFlag)
called by SwapDir::writeCompleted() after the last write and on error
Definition: RockIoState.cc:349
uint64_t IoXactionId
unique (within a given IoState object scope) I/O transaction identifier
Definition: forward.h:36
void handleReadCompletion(Rock::ReadRequest &request, const int rlen, const int errFlag)
forwards read data (or an error) to the reader that initiated this I/O
Definition: RockIoState.cc:150
void STIOCB(void *their_data, int errflag, StoreIOState::Pointer self)
Definition: StoreIOState.h:39
Definition: MemBlob.h:43
Definition: Store.h:37
IoState(Rock::SwapDir::Pointer &, StoreEntry *, StoreIOState::STIOCB *, void *cbData)
Definition: RockIoState.cc:25
sfileno SlotId
db cell number, starting with cell 0 (always occupied by the db header)
Definition: forward.h:30
uint64_t requestsSent
the number of read or write requests we sent to theFile
Definition: RockIoState.h:98
bool write(char const *buf, size_t size, off_t offset, FREE *free_func) override
wraps tryWrite() to handle deep write failures centrally and safely
Definition: RockIoState.cc:184
const Ipc::StoreMapAnchor & readAnchor() const
Definition: RockIoState.cc:76
size_t writeToBuffer(char const *buf, size_t size)
Definition: RockIoState.cc:247
void tryWrite(char const *buf, size_t size, off_t offset)
Definition: RockIoState.cc:212
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products