#include <PortCfg.h>

Inheritance diagram for AnyP::PortCfg:
Collaboration diagram for AnyP::PortCfg:

Public Types

typedef RefCount< CodeContextPointer

Public Member Functions

 PortCfg ()
 ~PortCfg ()
AnyP::PortCfgPointer clone () const
virtual ScopedId codeContextGist () const override
virtual std::ostream & detailCodeContext (std::ostream &os) const override
 appends human-friendly context description line(s) to a cache.log record More...

Static Public Member Functions

static const PointerCurrent ()
static void Reset ()
 forgets the current context, setting it to nil/unknown More...
static void Reset (const Pointer)
 changes the current context; nil argument sets it to nil/unknown More...

Public Attributes

PortCfgPointer next
Ip::Address s
AnyP::ProtocolVersion transport
 transport protocol and version received by this port More...
char * name
char * defaultsite
TrafficMode flags
 flags indicating what type of traffic to expect via this port. More...
bool allow_direct
 Allow direct forwarding in accelerator mode. More...
bool vhost
 uses host header More...
bool actAsOrigin
 update replies to conform with RFC 2616 More...
bool ignore_cc
 Ignore request Cache-Control directives. More...
bool connection_auth_disabled
 Don't support connection oriented auth. More...
bool ftp_track_dirs
 whether transactions should track FTP directories More...
int vport
 virtual port support. -1 if dynamic, >0 static More...
int disable_pmtu_discovery
struct {
   unsigned int   idle
   unsigned int   interval
   unsigned int   timeout
   bool   enabled
Comm::ConnectionPointer listenConn
Security::ServerOptions secure
 TLS configuration options for this listening port. More...

Detailed Description

Definition at line 23 of file PortCfg.h.

Member Typedef Documentation

◆ Pointer

Definition at line 23 of file CodeContext.h.

Constructor & Destructor Documentation

◆ PortCfg()

AnyP::PortCfg::PortCfg ( )

Definition at line 27 of file PortCfg.cc.

References tcp_keepalive.

◆ ~PortCfg()

AnyP::PortCfg::~PortCfg ( )

Member Function Documentation

◆ clone()

◆ codeContextGist()

ScopedId AnyP::PortCfg::codeContextGist ( ) const
a small, permanent ID of the current context gists persist forever and are suitable for passing to other SMP workers

Implements CodeContext.

Definition at line 83 of file PortCfg.cc.

◆ Current()

const CodeContext::Pointer & CodeContext::Current ( )
the known global context or, to indicate unknown context, nil

Definition at line 33 of file CodeContext.cc.

References Instance().

Referenced by CallSubscription< Call_ >::callback(), CallBack(), CallContextCreator(), CurrentCodeContextDetail(), HappyOrderEnforcer::enqueue(), epolltype_atoi(), CodeContext::Reset(), and ScheduleCall().

◆ detailCodeContext()

std::ostream & AnyP::PortCfg::detailCodeContext ( std::ostream &  os) const

Implements CodeContext.

Definition at line 91 of file PortCfg.cc.

References Debug::Extra(), name, Ip::Address::port(), and s.

◆ Reset() [1/2]

◆ Reset() [2/2]

void CodeContext::Reset ( const Pointer  codeCtx)

Member Data Documentation

◆ actAsOrigin

bool AnyP::PortCfg::actAsOrigin

Definition at line 45 of file PortCfg.h.

◆ allow_direct

bool AnyP::PortCfg::allow_direct

Definition at line 43 of file PortCfg.h.

Referenced by clone().

◆ connection_auth_disabled

bool AnyP::PortCfg::connection_auth_disabled

Definition at line 48 of file PortCfg.h.

Referenced by clone().

◆ defaultsite

char* AnyP::PortCfg::defaultsite

Definition at line 39 of file PortCfg.h.

Referenced by clone(), and ~PortCfg().

◆ disable_pmtu_discovery

int AnyP::PortCfg::disable_pmtu_discovery

Definition at line 53 of file PortCfg.h.

Referenced by clone().

◆ enabled

bool AnyP::PortCfg::enabled

Definition at line 59 of file PortCfg.h.

◆ flags

TrafficMode AnyP::PortCfg::flags

Definition at line 41 of file PortCfg.h.

Referenced by clone().

◆ ftp_track_dirs

bool AnyP::PortCfg::ftp_track_dirs

Definition at line 50 of file PortCfg.h.

Referenced by clone().

◆ idle

unsigned int AnyP::PortCfg::idle

Definition at line 56 of file PortCfg.h.

◆ ignore_cc

bool AnyP::PortCfg::ignore_cc

Definition at line 46 of file PortCfg.h.

◆ interval

unsigned int AnyP::PortCfg::interval

Definition at line 57 of file PortCfg.h.

◆ listenConn

Comm::ConnectionPointer AnyP::PortCfg::listenConn

The listening socket details. If Comm::ConnIsOpen() we are actively listening for client requests. use listenConn->close() to stop.

Definition at line 67 of file PortCfg.h.

Referenced by ~PortCfg().

◆ name

char* AnyP::PortCfg::name

Definition at line 38 of file PortCfg.h.

Referenced by clone(), detailCodeContext(), and ~PortCfg().

◆ next

PortCfgPointer AnyP::PortCfg::next

Definition at line 34 of file PortCfg.h.

◆ s

◆ secure

Security::ServerOptions AnyP::PortCfg::secure

Definition at line 70 of file PortCfg.h.

Referenced by clone(), and Ssl::configureUnconfiguredSslContext().

◆ tcp_keepalive

struct { ... } AnyP::PortCfg::tcp_keepalive

Referenced by clone(), and PortCfg().

◆ timeout

unsigned int AnyP::PortCfg::timeout

Definition at line 58 of file PortCfg.h.

◆ transport

◆ vhost

bool AnyP::PortCfg::vhost

Definition at line 44 of file PortCfg.h.

Referenced by clone().

◆ vport

int AnyP::PortCfg::vport

Definition at line 52 of file PortCfg.h.

Referenced by clone().

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






Web Site Translations