Host.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9/* DEBUG: section 93 eCAP Interface */
10
11#ifndef SQUID_ECAP_HOST_H
12#define SQUID_ECAP_HOST_H
13
14#include <libecap/host/host.h>
15
16namespace Adaptation
17{
18namespace Ecap
19{
20
21// Squid wrapper, providing host application functionality to eCAP services.
23{
24public:
25 /* libecap::host::Host API */
26 std::string uri() const override; // unique across all vendors
27 void describe(std::ostream &os) const override; // free-format info
28 void noteVersionedService(const char *libEcapVersion, const libecap::weak_ptr<libecap::adapter::Service> &s) override;
29 std::ostream *openDebug(libecap::LogVerbosity lv) override;
30 void closeDebug(std::ostream *debug) override;
31 typedef libecap::shared_ptr<libecap::Message> MessagePtr;
32 MessagePtr newRequest() const override;
33 MessagePtr newResponse() const override;
34
35 static void Register();
36
37private:
38 Host();
39 Host (const Host&);
40 Host& operator= (const Host&);
41};
42
43extern const libecap::Name protocolInternal;
44extern const libecap::Name protocolCacheObj;
45extern const libecap::Name protocolIcp;
46extern const libecap::Name protocolIcy;
47extern const libecap::Name protocolUnknown;
48#if USE_HTCP
49extern const libecap::Name protocolHtcp;
50#endif
51extern const libecap::Name metaBypassable;
52
53} // namespace Ecap
54} // namespace Adaptation
55
56#endif /* SQUID_ECAP_HOST_H */
57
void noteVersionedService(const char *libEcapVersion, const libecap::weak_ptr< libecap::adapter::Service > &s) override
Definition: Host.cc:114
static void Register()
register adaptation host
Definition: Host.cc:174
std::string uri() const override
Definition: Host.cc:66
void describe(std::ostream &os) const override
Definition: Host.cc:72
std::ostream * openDebug(libecap::LogVerbosity lv) override
Definition: Host.cc:144
libecap::shared_ptr< libecap::Message > MessagePtr
Definition: Host.h:31
Host(const Host &)
not implemented
MessagePtr newResponse() const override
Definition: Host.cc:168
void closeDebug(std::ostream *debug) override
Definition: Host.cc:154
Host & operator=(const Host &)
not implemented
MessagePtr newRequest() const override
Definition: Host.cc:161
void debug(const char *format,...)
Definition: debug.cc:19
const libecap::Name protocolIcp
const libecap::Name protocolUnknown
const libecap::Name protocolHtcp
const libecap::Name metaBypassable
an ecap_service parameter
const libecap::Name protocolInternal
const libecap::Name protocolCacheObj
const libecap::Name protocolIcy

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors