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, unsigned int aRequestId, const Pdu &aPdu, const Session &aSession, int aFd, const Ip::Address &anAddress)
 
 Request (const Ipc::TypedMsgHdr &msg)
 from recvmsg() More...
 
virtual void pack (Ipc::TypedMsgHdr &msg) const
 prepare for sendmsg() More...
 
virtual Pointer clone () const
 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
 kidId of the requestor; used for response destination More...
 
unsigned int requestId
 unique for sender; matches request w/ response More...
 

Private Member Functions

 Request (const Request &request)
 

Detailed Description

Definition at line 24 of file Request.h.

Member Typedef Documentation

◆ Pointer

Definition at line 24 of file Request.h.

Constructor & Destructor Documentation

◆ Request() [1/3]

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

Definition at line 16 of file Request.cc.

Referenced by clone().

◆ Request() [2/3]

◆ Request() [3/3]

Snmp::Request::Request ( const Request request)
private

Definition at line 24 of file Request.cc.

Member Function Documentation

◆ clone()

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

Implements Ipc::Request.

Definition at line 61 of file Request.cc.

References Request().

◆ pack()

Member Data Documentation

◆ address

Ip::Address Snmp::Request::address

Definition at line 42 of file Request.h.

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

◆ fd

int Snmp::Request::fd

Definition at line 41 of file Request.h.

Referenced by Snmp::Inquirer::Inquirer(), pack(), and Request().

◆ pdu

Pdu Snmp::Request::pdu

◆ requestId

◆ requestorId

◆ session

Session Snmp::Request::session

Definition at line 40 of file Request.h.

Referenced by pack(), Request(), 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