]> git.ipfire.org Git - thirdparty/squid.git/blame - src/snmp/Response.h
Maintenance: Consistent use of C++11 "override" specifier (#1224)
[thirdparty/squid.git] / src / snmp / Response.h
CommitLineData
51ea0904 1/*
bf95c10a 2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
51ea0904 3 *
bbc27441
AJ
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.
51ea0904
CT
7 */
8
bbc27441
AJ
9/* DEBUG: section 49 SNMP Interface */
10
51ea0904
CT
11#ifndef SQUID_SNMPX_RESPONSE_H
12#define SQUID_SNMPX_RESPONSE_H
13
14#include "ipc/forward.h"
15#include "ipc/Response.h"
d6e3ad20 16#include "snmp/Pdu.h"
51ea0904
CT
17#include <ostream>
18
19namespace Snmp
20{
21
8fb5a96c 22///
51ea0904
CT
23class Response: public Ipc::Response
24{
25public:
4c218615 26 explicit Response(Ipc::RequestId); ///< sender's constructor
51ea0904
CT
27 explicit Response(const Ipc::TypedMsgHdr& msg); ///< from recvmsg()
28 /* Ipc::Response API */
337b9aa4
AR
29 void pack(Ipc::TypedMsgHdr& msg) const override;
30 Ipc::Response::Pointer clone() const override;
51ea0904 31
51ea0904
CT
32public:
33 Pdu pdu; ///< SNMP protocol data unit
34};
35
51ea0904
CT
36} // namespace Snmp
37
38#endif /* SQUID_SNMPX_RESPONSE_H */
f53969cc 39