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::Host
TheHost
 the host application (i.e., Squid) wrapper registered with libecap More...
 

Function Documentation

static SBuf EssentialVersion ( const SBuf raw)
static

Definition at line 82 of file Host.cc.

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

Referenced by SupportedVersion().

static int SquidLogLevel ( libecap::LogVerbosity  lv)
static

Definition at line 132 of file Host.cc.

References DBG_CRITICAL, DBG_DATA, and DBG_IMPORTANT.

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

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 95 of file Host.cc.

References DBG_CRITICAL, debugs, and EssentialVersion().

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

Variable Documentation

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

Definition at line 35 of file Host.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors