Host.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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 virtual std::string uri() const; // unique across all vendors
27 virtual void describe(std::ostream &os) const; // free-format info
28 virtual void noteVersionedService(const char *libEcapVersion, const libecap::weak_ptr<libecap::adapter::Service> &s);
29 virtual std::ostream *openDebug(libecap::LogVerbosity lv);
30 virtual void closeDebug(std::ostream *debug);
31 typedef libecap::shared_ptr<libecap::Message> MessagePtr;
32 virtual MessagePtr newRequest() const;
33 virtual MessagePtr newResponse() const;
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
virtual MessagePtr newRequest() const
Definition: Host.cc:163
virtual void closeDebug(std::ostream *debug)
Definition: Host.cc:156
static void Register()
register adaptation host
Definition: Host.cc:176
virtual std::string uri() const
Definition: Host.cc:68
virtual void describe(std::ostream &os) const
Definition: Host.cc:74
virtual std::ostream * openDebug(libecap::LogVerbosity lv)
Definition: Host.cc:146
virtual MessagePtr newResponse() const
Definition: Host.cc:170
libecap::shared_ptr< libecap::Message > MessagePtr
Definition: Host.h:31
Host(const Host &)
not implemented
virtual void noteVersionedService(const char *libEcapVersion, const libecap::weak_ptr< libecap::adapter::Service > &s)
Definition: Host.cc:116
Host & operator=(const Host &)
not implemented
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
static int debug
Definition: tcp-banger3.c:105

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors