Host.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 
16 namespace Adaptation
17 {
18 namespace Ecap
19 {
20 
21 // Squid wrapper, providing host application functionality to eCAP services.
22 class Host : public libecap::host::Host
23 {
24 public:
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 
37 private:
38  Host();
39  Host (const Host&);
40  Host& operator= (const Host&);
41 };
42 
43 extern const libecap::Name protocolInternal;
44 extern const libecap::Name protocolCacheObj;
45 extern const libecap::Name protocolIcp;
46 extern const libecap::Name protocolIcy;
47 extern const libecap::Name protocolUnknown;
48 #if USE_HTCP
49 extern const libecap::Name protocolHtcp;
50 #endif
51 extern const libecap::Name metaBypassable;
52 
53 } // namespace Ecap
54 } // namespace Adaptation
55 
56 #endif /* SQUID_ECAP_HOST_H */
57 
const libecap::Name protocolHtcp
const libecap::Name metaBypassable
an ecap_service parameter
Host & operator=(const Host &)
not implemented
virtual void closeDebug(std::ostream *debug)
Definition: Host.cc:157
virtual MessagePtr newRequest() const
Definition: Host.cc:164
virtual void describe(std::ostream &os) const
Definition: Host.cc:75
virtual void noteVersionedService(const char *libEcapVersion, const libecap::weak_ptr< libecap::adapter::Service > &s)
Definition: Host.cc:117
virtual std::ostream * openDebug(libecap::LogVerbosity lv)
Definition: Host.cc:147
const libecap::Name protocolUnknown
const libecap::Name protocolIcy
static int debug
Definition: tcp-banger3.c:105
const libecap::Name protocolCacheObj
virtual MessagePtr newResponse() const
Definition: Host.cc:171
libecap::shared_ptr< libecap::Message > MessagePtr
Definition: Host.h:31
const libecap::Name protocolIcp
virtual std::string uri() const
Definition: Host.cc:69
const libecap::Name protocolInternal
static void Register()
register adaptation host
Definition: Host.cc:177

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors