]> git.ipfire.org Git - thirdparty/squid.git/blob - src/snmp/Response.h
Source Format Enforcement (#763)
[thirdparty/squid.git] / src / snmp / Response.h
1 /*
2 * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 /* DEBUG: section 49 SNMP Interface */
10
11 #ifndef SQUID_SNMPX_RESPONSE_H
12 #define SQUID_SNMPX_RESPONSE_H
13
14 #include "ipc/forward.h"
15 #include "ipc/Response.h"
16 #include "snmp/Pdu.h"
17 #include <ostream>
18
19 namespace Snmp
20 {
21
22 ///
23 class Response: public Ipc::Response
24 {
25 public:
26 explicit Response(Ipc::RequestId); ///< sender's constructor
27 explicit Response(const Ipc::TypedMsgHdr& msg); ///< from recvmsg()
28 /* Ipc::Response API */
29 virtual void pack(Ipc::TypedMsgHdr& msg) const;
30 virtual Ipc::Response::Pointer clone() const;
31
32 public:
33 Pdu pdu; ///< SNMP protocol data unit
34 };
35
36 } // namespace Snmp
37
38 #endif /* SQUID_SNMPX_RESPONSE_H */
39