|
Squid Web Cache master
|
a summary a TLS I/O operation outcome More...
#include <Io.h>
Public Types | |
| enum | Category { ioSuccess , ioWantRead , ioWantWrite , ioError } |
| all possible outcome cases More... | |
| typedef RefCount< IoResult > | Pointer |
Public Member Functions | |
| IoResult (const Category aCategory) | |
| IoResult (const ErrorDetailPointer &anErrorDetail) | |
| IoResult (const IoResult &aRes)=default | |
| bool | successful () const |
| convenience wrapper to detect successful I/O outcome; implies !wantsIo() | |
| bool | wantsIo () const |
| convenience wrapper to detect whether more I/O is needed | |
| void | printGist (std::ostream &) const |
| reports brief summary (on one line) suitable for low-level debugging | |
| void | printWithExtras (std::ostream &) const |
Public Attributes | |
| ErrorDetailPointer | errorDetail |
| ioError case details (or nil) | |
| Category | category = ioError |
| primary outcome classification | |
| const char * | errorDescription = nullptr |
| a brief description of an error | |
| bool | important = false |
| whether the error was serious/unusual | |
Private Member Functions | |
| void | printDescription (std::ostream &) const |
| common part of printGist() and printWithExtras() | |
| typedef RefCount<IoResult> Security::IoResult::Pointer |
|
inlineexplicit |
|
inlineexplicit |
|
default |
|
private |
Definition at line 28 of file Io.cc.
References category, errorDescription, ioError, ioSuccess, ioWantRead, and ioWantWrite.
| void IoResult< RT >::printGist | ( | std::ostream & | os | ) | const |
Definition at line 49 of file Io.cc.
Referenced by Security::operator<<().
| void IoResult< RT >::printWithExtras | ( | std::ostream & | os | ) | const |
reports detailed summary, often using multiple Debug::Extra lines suitable for level-0/1 cache.log messages
Definition at line 58 of file Io.cc.
References Debug::Extra().
|
inline |
|
inline |
Definition at line 34 of file Io.h.
References category, ioWantRead, and ioWantWrite.
Definition at line 45 of file Io.h.
Referenced by Security::PeerConnector::handleNegotiationResult(), ConnStateData::handleSslBumpHandshakeError(), printDescription(), successful(), and wantsIo().
| const char* Security::IoResult::errorDescription = nullptr |
Definition at line 48 of file Io.h.
Referenced by printDescription().
| ErrorDetailPointer Security::IoResult::errorDetail |
Definition at line 43 of file Io.h.
Referenced by Security::PeerConnector::handleNegotiationResult(), and ConnStateData::handleSslBumpHandshakeError().
| bool Security::IoResult::important = false |
Definition at line 49 of file Io.h.
Referenced by ConnStateData::handleSslBumpHandshakeError().