Http::Tunneler::CbDialer< Initiator > Class Template Reference

Callback dialer API to allow Tunneler to set the answer. More...

#include <HttpTunneler.h>

Inheritance diagram for Http::Tunneler::CbDialer< Initiator >:
Collaboration diagram for Http::Tunneler::CbDialer< Initiator >:

Public Types

typedef void(Initiator::* Method) (Http::TunnelerAnswer &)
 

Public Member Functions

 CbDialer (Method method, Initiator *initiator)
 
virtual ~CbDialer ()=default
 
bool canDial (AsyncCall &)
 
void dial (AsyncCall &)
 
virtual void print (std::ostream &os) const override
 
bool positive () const
 

Public Attributes

CbcPointer< ErrorStatesquidError
 problem details (or nil) More...
 
SBuf leftovers
 peer-generated bytes after a positive answer (or empty) More...
 
StatusCode peerResponseStatus = scNone
 the status code of the successfully parsed CONNECT response (or scNone) More...
 
Comm::ConnectionPointer conn
 

Private Attributes

CbcPointer< Initiator > initiator_
 object to deliver the answer to More...
 
Method method_
 initiator_ method to call with the answer More...
 

Detailed Description

template<class Initiator>
class Http::Tunneler::CbDialer< Initiator >

Definition at line 39 of file HttpTunneler.h.

Member Typedef Documentation

◆ Method

template<class Initiator >
typedef void(Initiator::* Http::Tunneler::CbDialer< Initiator >::Method) (Http::TunnelerAnswer &)

Definition at line 43 of file HttpTunneler.h.

Constructor & Destructor Documentation

◆ CbDialer()

template<class Initiator >
Http::Tunneler::CbDialer< Initiator >::CbDialer ( Method  method,
Initiator *  initiator 
)
inline

Definition at line 45 of file HttpTunneler.h.

◆ ~CbDialer()

template<class Initiator >
virtual Http::Tunneler::CbDialer< Initiator >::~CbDialer ( )
virtualdefault

Member Function Documentation

◆ canDial()

template<class Initiator >
bool Http::Tunneler::CbDialer< Initiator >::canDial ( AsyncCall )
inline

Definition at line 49 of file HttpTunneler.h.

References Http::Tunneler::CbDialer< Initiator >::initiator_.

◆ dial()

template<class Initiator >
void Http::Tunneler::CbDialer< Initiator >::dial ( AsyncCall )
inline

Definition at line 50 of file HttpTunneler.h.

References Http::Tunneler::CbDialer< Initiator >::method_.

◆ positive()

bool Http::TunnelerAnswer::positive ( ) const
inlineinherited

◆ print()

template<class Initiator >
virtual void Http::Tunneler::CbDialer< Initiator >::print ( std::ostream &  os) const
inlineoverridevirtual

Implements CallDialer.

Definition at line 51 of file HttpTunneler.h.

Member Data Documentation

◆ conn

◆ initiator_

template<class Initiator >
CbcPointer<Initiator> Http::Tunneler::CbDialer< Initiator >::initiator_
private

Definition at line 55 of file HttpTunneler.h.

Referenced by Http::Tunneler::CbDialer< Initiator >::canDial().

◆ leftovers

SBuf Http::TunnelerAnswer::leftovers
inherited

◆ method_

template<class Initiator >
Method Http::Tunneler::CbDialer< Initiator >::method_
private

Definition at line 56 of file HttpTunneler.h.

Referenced by Http::Tunneler::CbDialer< Initiator >::dial().

◆ peerResponseStatus

StatusCode Http::TunnelerAnswer::peerResponseStatus = scNone
inherited

◆ squidError


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors