]> git.ipfire.org Git - thirdparty/squid.git/blame - src/snmp/Response.h
Boilerplate: update copyright blurbs on Squid helpers
[thirdparty/squid.git] / src / snmp / Response.h
CommitLineData
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
14namespace Snmp
15{
16
8fb5a96c 17///
51ea0904
CT
18class Response: public Ipc::Response
19{
20public:
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
27private:
28 Response(const Response& response);
29
30public:
31 Pdu pdu; ///< SNMP protocol data unit
32};
33
82afb125 34std::ostream& operator << (std::ostream& os, const Response& response);
51ea0904
CT
35
36} // namespace Snmp
37
38#endif /* SQUID_SNMPX_RESPONSE_H */