Squid Web Cache master
Loading...
Searching...
No Matches
Snmp::Response Class Reference

#include <Response.h>

Inheritance diagram for Snmp::Response:
[legend]
Collaboration diagram for Snmp::Response:
[legend]

Public Types

typedef RefCount< ResponsePointer
 

Public Member Functions

 Response (Ipc::RequestId)
 sender's constructor
 
 Response (const Ipc::TypedMsgHdr &msg)
 from recvmsg()
 
void pack (Ipc::TypedMsgHdr &msg) const override
 prepare for sendmsg()
 
Ipc::Response::Pointer clone () const override
 returns a copy of this
 
QuestionerId intendedRecepient () const
 for Mine() tests
 

Public Attributes

Pdu pdu
 SNMP protocol data unit.
 
RequestId requestId
 the ID of the request we are responding to
 

Detailed Description

Definition at line 23 of file Response.h.

Member Typedef Documentation

◆ Pointer

Definition at line 26 of file Response.h.

Constructor & Destructor Documentation

◆ Response() [1/2]

Snmp::Response::Response ( Ipc::RequestId  aRequestId)
explicit

Definition at line 18 of file Response.cc.

◆ Response() [2/2]

Snmp::Response::Response ( const Ipc::TypedMsgHdr msg)
explicit

Member Function Documentation

◆ clone()

Ipc::Response::Pointer Snmp::Response::clone ( ) const
overridevirtual

Implements Ipc::Response.

Definition at line 39 of file Response.cc.

◆ intendedRecepient()

QuestionerId Ipc::Response::intendedRecepient ( ) const
inlineinherited

Definition at line 33 of file Response.h.

References Ipc::RequestId::questioner(), and Ipc::Response::requestId.

◆ pack()

void Snmp::Response::pack ( Ipc::TypedMsgHdr msg) const
overridevirtual

Member Data Documentation

◆ pdu

Pdu Snmp::Response::pdu

Definition at line 33 of file Response.h.

Referenced by Snmp::Inquirer::aggregate(), and Snmp::SendResponse().

◆ requestId

RequestId Ipc::Response::requestId
inherited

The documentation for this class was generated from the following files: