HappyConnOpenerAnswer Class Reference

Final result (an open connection or an error) sent to the job initiator. More...

#include <HappyConnOpener.h>

Inheritance diagram for HappyConnOpenerAnswer:
Collaboration diagram for HappyConnOpenerAnswer:

Public Member Functions

 ~HappyConnOpenerAnswer ()
bool success () const
 whether HappyConnOpener succeeded, returning a usable connection More...

Public Attributes

PeerConnectionPointer conn
CbcPointer< ErrorStateerror
 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 72 of file HappyConnOpener.h.

Constructor & Destructor Documentation

◆ ~HappyConnOpenerAnswer()

HappyConnOpenerAnswer::~HappyConnOpenerAnswer ( )

Definition at line 318 of file HappyConnOpener.cc.

References error, and CbcPointer< Cbc >::get().

Member Function Documentation

◆ success()

bool HappyConnOpenerAnswer::success ( ) const

Definition at line 78 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 82 of file HappyConnOpener.h.

Referenced by FwdState::noteConnection(), TunnelStateData::noteConnection(), and operator<<().

◆ error

◆ 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 90 of file HappyConnOpener.h.

Referenced by FwdState::noteConnection(), and operator<<().

◆ reused

bool HappyConnOpenerAnswer::reused = false

The documentation for this class was generated from the following files:






Web Site Translations