|
Barracuda Application Server C/C++ Reference
Native APIs, integration guides, and platform interfaces
|
The IoIntfCspReader, which implements the abstract CspReader interface, makes it possible to open a "CSP dat" file via a IoIntf.
#include <IoIntfCspReader.h>

Public Member Functions | |
| IoIntfCspReader () | |
| Uninitialized storage; initialize before use or destruction. More... | |
| IoIntfCspReader (IoIntf *io, const char *pathName) | |
| The IoIntfCspReader constructor opens the CSP data file for reading. More... | |
| ~IoIntfCspReader () | |
| Close an open file, ignoring the close status. More... | |
| int | close () |
| Close and consume the file handle, even if closing fails. More... | |
Public Member Functions inherited from CspReader | |
| bool | isValid () |
| int | read (void *data, U32 offset, U32 size, bool blockStart) |
| Invoke the installed CspReader_Read callback synchronously. More... | |
| void | setIsValid () |
| Mark the implementation initialized after opening/checking its data. More... | |
| IoIntfCspReader::IoIntfCspReader | ( | ) |
Uninitialized storage; initialize before use or destruction.
| IoIntfCspReader::IoIntfCspReader | ( | IoIntf * | io, |
| const char * | pathName | ||
| ) |
The IoIntfCspReader constructor opens the CSP data file for reading.
| io | Borrowed seekable I/O interface, valid until this reader closes. |
| pathName | Required NUL-terminated path within io to the data file generated by httpLink; used during construction only. Check inherited CspReader::isValid before use. A stat/open failure leaves the reader invalid. Debug builds call baFatalE if the initial magic number cannot be read or does not match the CSP data format. |
| IoIntfCspReader::~IoIntfCspReader | ( | ) |
Close an open file, ignoring the close status.
Stop all users of this reader before destruction.
| int IoIntfCspReader::close | ( | ) |
Close and consume the file handle, even if closing fails.
Stop all reads first. The inherited isValid flag is not cleared; never use it to decide whether reading after close is safe.