#include <agentx_request.h>
Public Member Functions | |
AgentXRequest (const AgentXPdu &) | |
Construct a Request. | |
virtual | ~AgentXRequest () |
Destructor. | |
virtual Oidx | get_oid (int) |
Return the object identifier of the specified sub-request. | |
virtual void | set_oid (const Oidx &, int) |
virtual unsigned short | get_agentx_type () |
Return the AgentX request type. | |
AgentXPdu * | get_agentx_pdu () |
Return a pointer to the AgentXPdu. | |
virtual boolean | add_rep_row () |
Add a repetition row to the GETBULK request PDU. | |
virtual void | trim_request (int) |
Trim the request's variable bindings to a given number of elements. | |
void | lock () |
Lock the request for exclusive usage. | |
void | unlock () |
Unlock the request. | |
Friends | |
class | AgentXRequestList |
class | SubAgentXMib |
It is derived from the Request class from AGENT++. Instead of holding a Pdux instance this class holds an AgentXPdu instance.
AgentXRequest::AgentXRequest | ( | const AgentXPdu & | ) |
virtual AgentXRequest::~AgentXRequest | ( | ) | [virtual] |
Destructor.
virtual Oidx AgentXRequest::get_oid | ( | int | ) | [virtual] |
Return the object identifier of the specified sub-request.
index | the index of the sub-request (starting from 0). |
virtual void AgentXRequest::set_oid | ( | const Oidx & | , | |
int | ||||
) | [virtual] |
virtual unsigned short AgentXRequest::get_agentx_type | ( | ) | [inline, virtual] |
AgentXPdu* AgentXRequest::get_agentx_pdu | ( | ) | [inline] |
virtual boolean AgentXRequest::add_rep_row | ( | ) | [virtual] |
Add a repetition row to the GETBULK request PDU.
virtual void AgentXRequest::trim_request | ( | int | ) | [virtual] |
Trim the request's variable bindings to a given number of elements.
Elements are removed starting from the end.
count | the count of variable bindings that should remain. |
void AgentXRequest::lock | ( | ) |
Lock the request for exclusive usage.
This is used for processing SET requests.
void AgentXRequest::unlock | ( | ) |
Unlock the request.
friend class AgentXRequestList [friend] |
friend class SubAgentXMib [friend] |