]>
Commit | Line | Data |
---|---|---|
51ea0904 | 1 | /* |
51ea0904 CT |
2 | * DEBUG: section 49 SNMP Interface |
3 | * | |
4 | */ | |
5 | ||
6 | #ifndef SQUID_SNMPX_RESPONSE_H | |
7 | #define SQUID_SNMPX_RESPONSE_H | |
8 | ||
9 | #include "ipc/forward.h" | |
10 | #include "ipc/Response.h" | |
d6e3ad20 | 11 | #include "snmp/Pdu.h" |
51ea0904 CT |
12 | #include <ostream> |
13 | ||
14 | namespace Snmp | |
15 | { | |
16 | ||
8fb5a96c | 17 | /// |
51ea0904 CT |
18 | class Response: public Ipc::Response |
19 | { | |
20 | public: | |
21 | Response(unsigned int aRequestId); | |
22 | explicit Response(const Ipc::TypedMsgHdr& msg); ///< from recvmsg() | |
23 | /* Ipc::Response API */ | |
24 | virtual void pack(Ipc::TypedMsgHdr& msg) const; | |
25 | virtual Ipc::Response::Pointer clone() const; | |
26 | ||
27 | private: | |
28 | Response(const Response& response); | |
29 | ||
30 | public: | |
31 | Pdu pdu; ///< SNMP protocol data unit | |
32 | }; | |
33 | ||
82afb125 | 34 | std::ostream& operator << (std::ostream& os, const Response& response); |
51ea0904 CT |
35 | |
36 | } // namespace Snmp | |
37 | ||
38 | #endif /* SQUID_SNMPX_RESPONSE_H */ |