]> git.ipfire.org Git - thirdparty/squid.git/blob - src/snmp/Response.h
Author: Leonid Evdokimov <leon@darkk.net.ru>
[thirdparty/squid.git] / src / snmp / Response.h
1 /*
2 * $Id$
3 *
4 * DEBUG: section 49 SNMP Interface
5 *
6 */
7
8 #ifndef SQUID_SNMPX_RESPONSE_H
9 #define SQUID_SNMPX_RESPONSE_H
10
11 #include "ipc/forward.h"
12 #include "ipc/Response.h"
13 #include "snmp/Pdu.h"
14 #include <ostream>
15
16 namespace Snmp
17 {
18
19 ///
20 class Response: public Ipc::Response
21 {
22 public:
23 Response(unsigned int aRequestId);
24 explicit Response(const Ipc::TypedMsgHdr& msg); ///< from recvmsg()
25 /* Ipc::Response API */
26 virtual void pack(Ipc::TypedMsgHdr& msg) const;
27 virtual Ipc::Response::Pointer clone() const;
28
29 private:
30 Response(const Response& response);
31
32 public:
33 Pdu pdu; ///< SNMP protocol data unit
34 };
35
36 extern std::ostream& operator << (std::ostream& os, const Response& response);
37
38 } // namespace Snmp
39
40 #endif /* SQUID_SNMPX_RESPONSE_H */