]> git.ipfire.org Git - thirdparty/squid.git/blob - src/snmp/Response.h
Merged from trunk
[thirdparty/squid.git] / src / snmp / Response.h
1 /*
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"
11 #include "snmp/Pdu.h"
12 #include <ostream>
13
14 namespace Snmp
15 {
16
17 ///
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
34 extern std::ostream& operator << (std::ostream& os, const Response& response);
35
36 } // namespace Snmp
37
38 #endif /* SQUID_SNMPX_RESPONSE_H */