|
Squid Web Cache master
|
Final result (an open connection or an error) sent to the job initiator. More...
#include <HappyConnOpener.h>
Public Member Functions | |
| ~HappyConnOpenerAnswer () | |
| bool | success () const |
| whether HappyConnOpener succeeded, returning a usable connection | |
Public Attributes | |
| PeerConnectionPointer | conn |
| CbcPointer< ErrorState > | error |
| problem details (nil on success) | |
| int | n_tries = 0 |
| bool | reused = false |
| whether conn was open earlier, by/for somebody else | |
Definition at line 75 of file HappyConnOpener.h.
| HappyConnOpenerAnswer::~HappyConnOpenerAnswer | ( | ) |
Definition at line 319 of file HappyConnOpener.cc.
References error, and CbcPointer< Cbc >::get().
|
inline |
Definition at line 81 of file HappyConnOpener.h.
References error.
| PeerConnectionPointer HappyConnOpenerAnswer::conn |
on success: an open, ready-to-use Squid-to-peer connection on failure: either a closed failed Squid-to-peer connection or nil
Definition at line 85 of file HappyConnOpener.h.
Referenced by HappyConnOpener::futureAnswer(), FwdState::noteConnection(), TunnelStateData::noteConnection(), and operator<<().
| CbcPointer<ErrorState> HappyConnOpenerAnswer::error |
Definition at line 89 of file HappyConnOpener.h.
Referenced by ~HappyConnOpenerAnswer(), FwdState::noteConnection(), TunnelStateData::noteConnection(), operator<<(), and success().
| int HappyConnOpenerAnswer::n_tries = 0 |
The total number of attempts to establish a connection. Includes any failed attempts and [always successful] persistent connection reuse.
Definition at line 93 of file HappyConnOpener.h.
Referenced by FwdState::noteConnection(), TunnelStateData::noteConnection(), and operator<<().
| bool HappyConnOpenerAnswer::reused = false |
Definition at line 96 of file HappyConnOpener.h.
Referenced by FwdState::noteConnection(), TunnelStateData::noteConnection(), and operator<<().