]>
Commit | Line | Data |
---|---|---|
fdc96a39 | 1 | /* |
b510f3a1 | 2 | * DEBUG: section 93 eCAP Interface |
fdc96a39 AR |
3 | */ |
4 | ||
5 | #ifndef SQUID_ECAP_HOST_H | |
6 | #define SQUID_ECAP_HOST_H | |
7 | ||
8 | #include <libecap/host/host.h> | |
9 | ||
af6a12ee AJ |
10 | namespace Adaptation |
11 | { | |
e1381638 AJ |
12 | namespace Ecap |
13 | { | |
fdc96a39 AR |
14 | |
15 | // Squid wrapper, providing host application functionality to eCAP services. | |
16 | class Host : public libecap::host::Host | |
17 | { | |
18 | public: | |
8442a9b2 | 19 | /* libecap::host::Host API */ |
26ac0430 AJ |
20 | virtual std::string uri() const; // unique across all vendors |
21 | virtual void describe(std::ostream &os) const; // free-format info | |
0a720258 | 22 | virtual void noteVersionedService(const char *libEcapVersion, const libecap::weak_ptr<libecap::adapter::Service> &s); |
26ac0430 AJ |
23 | virtual std::ostream *openDebug(libecap::LogVerbosity lv); |
24 | virtual void closeDebug(std::ostream *debug); | |
cc7b2f6c AR |
25 | typedef libecap::shared_ptr<libecap::Message> MessagePtr; |
26 | virtual MessagePtr newRequest() const; | |
27 | virtual MessagePtr newResponse() const; | |
28 | ||
76fc7e57 AJ |
29 | static void Register(); ///< register adaptation host |
30 | ||
31 | private: | |
32 | Host(); | |
33 | Host (const Host&); ///< not implemented | |
34 | Host& operator= (const Host&); ///< not implemented | |
fdc96a39 AR |
35 | }; |
36 | ||
530f96dd AR |
37 | extern const libecap::Name protocolInternal; |
38 | extern const libecap::Name protocolCacheObj; | |
39 | extern const libecap::Name protocolIcp; | |
555aedbf AR |
40 | extern const libecap::Name protocolIcy; |
41 | extern const libecap::Name protocolUnknown; | |
530f96dd AR |
42 | #if USE_HTCP |
43 | extern const libecap::Name protocolHtcp; | |
44 | #endif | |
22fff3bf | 45 | extern const libecap::Name metaBypassable; ///< an ecap_service parameter |
530f96dd | 46 | |
fdc96a39 | 47 | } // namespace Ecap |
574b508c | 48 | } // namespace Adaptation |
fdc96a39 AR |
49 | |
50 | #endif /* SQUID_ECAP_HOST_H */ |