SNMP request. More...

#include <Request.h>

Inheritance diagram for Snmp::Request:
Collaboration diagram for Snmp::Request:

Public Types

typedef RefCount< RequestPointer
 

Public Member Functions

 Request (int aRequestorId, Ipc::RequestId aRequestId, const Pdu &aPdu, const Session &aSession, int aFd, const Ip::Address &anAddress)
 
 Request (const Ipc::TypedMsgHdr &msg)
 from recvmsg() More...
 
void pack (Ipc::TypedMsgHdr &msg) const override
 prepare for sendmsg() More...
 
Pointer clone () const override
 returns a copy of this More...
 

Public Attributes

Pdu pdu
 SNMP protocol data unit. More...
 
Session session
 SNMP session. More...
 
int fd
 client connection descriptor More...
 
Ip::Address address
 client address More...
 
int requestorId = 0
 kidId of the requestor; used for response destination More...
 
RequestId requestId
 matches the request[or] with the response More...
 

Detailed Description

Definition at line 24 of file Request.h.

Member Typedef Documentation

◆ Pointer

Definition at line 30 of file Request.h.

Constructor & Destructor Documentation

◆ Request() [1/2]

Snmp::Request::Request ( int  aRequestorId,
Ipc::RequestId  aRequestId,
const Pdu aPdu,
const Session aSession,
int  aFd,
const Ip::Address anAddress 
)

Definition at line 16 of file Request.cc.

◆ Request() [2/2]

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

Member Function Documentation

◆ clone()

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

Implements Ipc::Request.

Definition at line 53 of file Request.cc.

◆ pack()

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

Member Data Documentation

◆ address

Ip::Address Snmp::Request::address

Definition at line 39 of file Request.h.

Referenced by Snmp::Forwarder::sendError(), and Snmp::Inquirer::sendResponse().

◆ fd

int Snmp::Request::fd

Definition at line 38 of file Request.h.

Referenced by Snmp::Inquirer::Inquirer().

◆ pdu

Pdu Snmp::Request::pdu

Definition at line 36 of file Request.h.

Referenced by Ipc::Strand::handleSnmpRequest(), and Snmp::Forwarder::sendError().

◆ requestId

◆ requestorId

int Ipc::Request::requestorId = 0
inherited

◆ session

Session Snmp::Request::session

Definition at line 37 of file Request.h.

Referenced by Snmp::Forwarder::sendError(), and Snmp::Inquirer::sendResponse().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors