]>
Commit | Line | Data |
---|---|---|
fdc96a39 AR |
1 | |
2 | /* | |
3 | * $Id$ | |
4 | */ | |
5 | ||
6 | #ifndef SQUID_ECAP_HOST_H | |
7 | #define SQUID_ECAP_HOST_H | |
8 | ||
9 | #include <libecap/host/host.h> | |
10 | ||
af6a12ee AJ |
11 | namespace Adaptation |
12 | { | |
e1381638 AJ |
13 | namespace Ecap |
14 | { | |
fdc96a39 AR |
15 | |
16 | // Squid wrapper, providing host application functionality to eCAP services. | |
17 | class Host : public libecap::host::Host | |
18 | { | |
19 | public: | |
26ac0430 | 20 | Host(); |
fdc96a39 | 21 | |
26ac0430 AJ |
22 | // About |
23 | virtual std::string uri() const; // unique across all vendors | |
24 | virtual void describe(std::ostream &os) const; // free-format info | |
fdc96a39 | 25 | |
26ac0430 AJ |
26 | // Service management |
27 | virtual void noteService(const libecap::weak_ptr<libecap::adapter::Service> &s); | |
530f96dd | 28 | |
26ac0430 AJ |
29 | // Logging |
30 | virtual std::ostream *openDebug(libecap::LogVerbosity lv); | |
31 | virtual void closeDebug(std::ostream *debug); | |
fdc96a39 AR |
32 | }; |
33 | ||
530f96dd AR |
34 | extern const libecap::Name protocolInternal; |
35 | extern const libecap::Name protocolCacheObj; | |
36 | extern const libecap::Name protocolIcp; | |
37 | #if USE_HTCP | |
38 | extern const libecap::Name protocolHtcp; | |
39 | #endif | |
40 | ||
fdc96a39 | 41 | } // namespace Ecap |
574b508c | 42 | } // namespace Adaptation |
fdc96a39 AR |
43 | |
44 | #endif /* SQUID_ECAP_HOST_H */ |