Response.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 
23 class Response: public Ipc::Response
24 {
25 public:
26  Response(unsigned int aRequestId);
27  explicit Response(const Ipc::TypedMsgHdr& msg);
28  /* Ipc::Response API */
29  virtual void pack(Ipc::TypedMsgHdr& msg) const;
30  virtual Ipc::Response::Pointer clone() const;
31 
32 private:
33  Response(const Response& response);
34 
35 public:
36  Pdu pdu;
37 };
38 
39 std::ostream& operator << (std::ostream& os, const Response& response);
40 
41 } // namespace Snmp
42 
43 #endif /* SQUID_SNMPX_RESPONSE_H */
44 
virtual void pack(Ipc::TypedMsgHdr &msg) const
prepare for sendmsg()
Definition: Response.cc:42
Response(unsigned int aRequestId)
Definition: Response.cc:23
Definition: Pdu.h:23
std::ostream & operator<<(std::ostream &os, const Response &response)
Definition: Response.cc:17
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:31
Pdu pdu
SNMP protocol data unit.
Definition: Response.h:36
virtual Ipc::Response::Pointer clone() const
returns a copy of this
Definition: Response.cc:50
A response to Ipc::Request.
Definition: Response.h:21

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors