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 More... | |
Public Attributes | |
PeerConnectionPointer | conn |
CbcPointer< ErrorState > | error |
problem details (nil on success) More... | |
int | n_tries = 0 |
bool | reused = false |
whether conn was open earlier, by/for somebody else More... | |
Detailed Description
Definition at line 75 of file HappyConnOpener.h.
Constructor & Destructor Documentation
◆ ~HappyConnOpenerAnswer()
HappyConnOpenerAnswer::~HappyConnOpenerAnswer | ( | ) |
Definition at line 319 of file HappyConnOpener.cc.
References error, and CbcPointer< Cbc >::get().
Member Function Documentation
◆ success()
|
inline |
Definition at line 81 of file HappyConnOpener.h.
References error.
Member Data Documentation
◆ conn
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 FwdState::noteConnection(), TunnelStateData::noteConnection(), and operator<<().
◆ error
CbcPointer<ErrorState> HappyConnOpenerAnswer::error |
Definition at line 89 of file HappyConnOpener.h.
Referenced by ~HappyConnOpenerAnswer(), FwdState::noteConnection(), TunnelStateData::noteConnection(), operator<<(), and success().
◆ n_tries
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<<().
◆ reused
bool HappyConnOpenerAnswer::reused = false |
Definition at line 96 of file HappyConnOpener.h.
Referenced by FwdState::noteConnection(), TunnelStateData::noteConnection(), and operator<<().
The documentation for this class was generated from the following files:
- src/HappyConnOpener.h
- src/HappyConnOpener.cc