Host.cc File Reference
#include "squid.h"
#include <libecap/adapter/service.h>
#include <libecap/common/names.h>
#include <libecap/common/registry.h>
#include "adaptation/ecap/Host.h"
#include "adaptation/ecap/MessageRep.h"
#include "adaptation/ecap/ServiceRep.h"
#include "base/TextException.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "MasterXaction.h"
Include dependency graph for Host.cc:

Go to the source code of this file.

Functions

static SBuf EssentialVersion (const SBuf &raw)
 Strips libecap version components not affecting compatibility decisions. More...
 
static bool SupportedVersion (const char *vTheir, const char *them)
 
static int SquidLogLevel (libecap::LogVerbosity lv)
 

Variables

static libecap::shared_ptr< Adaptation::Ecap::HostTheHost
 the host application (i.e., Squid) wrapper registered with libecap More...
 

Function Documentation

◆ EssentialVersion()

static SBuf EssentialVersion ( const SBuf raw)
static

Definition at line 79 of file Host.cc.

References SBuf::find(), SBuf::npos, and SBuf::substr().

Referenced by SupportedVersion().

◆ SquidLogLevel()

static int SquidLogLevel ( libecap::LogVerbosity  lv)
static

Definition at line 129 of file Host.cc.

References DBG_CRITICAL, DBG_DATA, and DBG_IMPORTANT.

Referenced by Adaptation::Ecap::Host::openDebug().

◆ SupportedVersion()

static bool SupportedVersion ( const char *  vTheir,
const char *  them 
)
static

If "their" libecap version is not compatible with what Squid has been built with, then complain and return false.

Definition at line 92 of file Host.cc.

References DBG_CRITICAL, debugs, and EssentialVersion().

Referenced by Adaptation::Ecap::Host::noteVersionedService(), and Adaptation::Ecap::Host::Register().

Variable Documentation

◆ TheHost

libecap::shared_ptr<Adaptation::Ecap::Host> TheHost
static

Definition at line 34 of file Host.cc.

Referenced by Adaptation::Ecap::Host::Register().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors