Response.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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
19namespace Snmp
20{
21
24{
25public:
26 explicit Response(Ipc::RequestId);
27 explicit Response(const Ipc::TypedMsgHdr& msg);
28 /* Ipc::Response API */
29 void pack(Ipc::TypedMsgHdr& msg) const override;
30 Ipc::Response::Pointer clone() const override;
31
32public:
34};
35
36} // namespace Snmp
37
38#endif /* SQUID_SNMPX_RESPONSE_H */
39
A response to Ipc::Request.
Definition: Response.h:24
Response()=default
recipient's constructor
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:35
Definition: Pdu.h:24
Ipc::Response::Pointer clone() const override
returns a copy of this
Definition: Response.cc:39
Pdu pdu
SNMP protocol data unit.
Definition: Response.h:33
void pack(Ipc::TypedMsgHdr &msg) const override
prepare for sendmsg()
Definition: Response.cc:31
Definition: forward.h:15

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors