HappyConnOpenerAnswer Class Reference

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

#include <HappyConnOpener.h>

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 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()

bool HappyConnOpenerAnswer::success ( ) const
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

◆ 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

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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors