#include <agentx.h>
Public Member Functions | |
AgentXMaster () | |
virtual | ~AgentXMaster () |
void | set_timeout (int t) |
Set the connection timeout. | |
virtual int | bind_unix () |
Bind unix domain socket. | |
virtual int | bind_tcp () |
Bind TCP socket. | |
virtual void | connect_request (fd_set *, int *) |
Process a subagent's connect request. | |
virtual boolean | is_response (const AgentXPdu &, const AgentXPdu &) |
Check whether two PDUs are a request/response pair. | |
Protected Member Functions | |
virtual int | accept_unix () |
Accept a new connection on the unix port and return the socket descriptor. | |
virtual boolean | validate_address (const NS_SNMP OctetStr &) const |
Validate the supplied source address against the addresses in the agentppAgentXExtSrcAddrTable. | |
Protected Attributes | |
int | timeout |
AgentXMaster::AgentXMaster | ( | ) |
virtual AgentXMaster::~AgentXMaster | ( | ) | [virtual] |
void AgentXMaster::set_timeout | ( | int | t | ) | [inline] |
Set the connection timeout.
timeout | the new connection timeout. |
virtual int AgentXMaster::bind_unix | ( | ) | [virtual] |
virtual int AgentXMaster::bind_tcp | ( | ) | [virtual] |
virtual void AgentXMaster::connect_request | ( | fd_set * | , | |
int * | ||||
) | [virtual] |
Process a subagent's connect request.
fileDescrSet | a file descriptor set. | |
a | pointer to a pending descriptors counter. |
Check whether two PDUs are a request/response pair.
request | the "request" PDU. | |
response | the "response" PDU. |
Implements AgentX.
virtual int AgentXMaster::accept_unix | ( | ) | [protected, virtual] |
Accept a new connection on the unix port and return the socket descriptor.
virtual boolean AgentXMaster::validate_address | ( | const NS_SNMP OctetStr & | ) | const [protected, virtual] |
Validate the supplied source address against the addresses in the agentppAgentXExtSrcAddrTable.
int AgentXMaster::timeout [protected] |