]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/ecap/Host.h
3 * DEBUG: section 93 eCAP Interface
6 #ifndef SQUID_ECAP_HOST_H
7 #define SQUID_ECAP_HOST_H
9 #include <libecap/host/host.h>
16 // Squid wrapper, providing host application functionality to eCAP services.
17 class Host
: public libecap::host::Host
21 virtual std::string
uri() const; // unique across all vendors
22 virtual void describe(std::ostream
&os
) const; // free-format info
25 virtual void noteService(const libecap::weak_ptr
<libecap::adapter::Service
> &s
);
28 virtual std::ostream
*openDebug(libecap::LogVerbosity lv
);
29 virtual void closeDebug(std::ostream
*debug
);
32 typedef libecap::shared_ptr
<libecap::Message
> MessagePtr
;
33 virtual MessagePtr
newRequest() const;
34 virtual MessagePtr
newResponse() const;
36 static void Register(); ///< register adaptation host
40 Host (const Host
&); ///< not implemented
41 Host
& operator= (const Host
&); ///< not implemented
44 extern const libecap::Name protocolInternal
;
45 extern const libecap::Name protocolCacheObj
;
46 extern const libecap::Name protocolIcp
;
48 extern const libecap::Name protocolHtcp
;
52 } // namespace Adaptation
54 #endif /* SQUID_ECAP_HOST_H */