/* * Copyright (C) 1996-2023 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ /* DEBUG: section 49 SNMP Interface */ #ifndef SQUID_SNMPX_RESPONSE_H #define SQUID_SNMPX_RESPONSE_H #include "ipc/forward.h" #include "ipc/Response.h" #include "snmp/Pdu.h" #include namespace Snmp { /// class Response: public Ipc::Response { public: explicit Response(Ipc::RequestId); ///< sender's constructor explicit Response(const Ipc::TypedMsgHdr& msg); ///< from recvmsg() /* Ipc::Response API */ virtual void pack(Ipc::TypedMsgHdr& msg) const; virtual Ipc::Response::Pointer clone() const; public: Pdu pdu; ///< SNMP protocol data unit }; } // namespace Snmp #endif /* SQUID_SNMPX_RESPONSE_H */