#include <agentx.h>
|
virtual int | accept_unix () |
| Accept a new connection on the unix port and return the socket descriptor.
|
|
virtual bool | validate_address (const NS_SNMP OctetStr &) const |
| Validate the supplied source address against the addresses in the agentppAgentXExtSrcAddrTable.
|
|
|
static time_t | compute_timeout (u_int, u_int=0) |
| Compute the timeout (timestamp when a PDU/request times out)
|
|
bool | stopit |
|
AgentXMaster::AgentXMaster |
( |
| ) |
|
virtual AgentXMaster::~AgentXMaster |
( |
| ) |
|
|
virtual |
virtual int AgentXMaster::accept_unix |
( |
| ) |
|
|
protectedvirtual |
Accept a new connection on the unix port and return the socket descriptor.
- Returns
- a socket descriptor on success and a value < 0 on failure.
virtual bool AgentXMaster::bind_tcp |
( |
| ) |
|
|
virtual |
Bind TCP socket.
- Returns
- TRUE if the socket could be bound successfully.
Implements AgentX.
virtual bool AgentXMaster::bind_unix |
( |
| ) |
|
|
virtual |
Bind unix domain socket.
- Returns
- TRUE if the socket could be bound successfully.
Implements AgentX.
virtual void AgentXMaster::connect_request |
( |
fd_set * |
, |
|
|
int * |
|
|
) |
| |
|
virtual |
Process a subagent's connect request.
- Parameters
-
fileDescrSet | a file descriptor set. |
a | pointer to a pending descriptors counter. |
Check whether two PDUs are a request/response pair.
- Parameters
-
request | the "request" PDU. |
response | the "response" PDU. |
- Returns
- TRUE if response is a response to request, FALSE otherwise.
Implements AgentX.
void AgentXMaster::set_timeout |
( |
int |
t | ) |
|
|
inline |
Set the connection timeout.
- Parameters
-
timeout | the new connection timeout. |
virtual bool AgentXMaster::validate_address |
( |
const NS_SNMP OctetStr & |
| ) |
const |
|
protectedvirtual |
Validate the supplied source address against the addresses in the agentppAgentXExtSrcAddrTable.
- Returns
- TRUE if the source address is valid, FALSE otherwise.
int AgentXMaster::timeout |
|
protected |
The documentation for this class was generated from the following file: