AgentXMaster Class Reference

#include <agentx.h>

Inheritance diagram for AgentXMaster:

AgentX

List of all members.

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


Constructor & Destructor Documentation

AgentXMaster::AgentXMaster (  ) 

virtual AgentXMaster::~AgentXMaster (  )  [virtual]


Member Function Documentation

void AgentXMaster::set_timeout ( int  t  )  [inline]

Set the connection timeout.

Parameters:
timeout the new connection timeout.

virtual int AgentXMaster::bind_unix (  )  [virtual]

Bind unix domain socket.

Returns:
TRUE if the socket could be bound successfully.

Implements AgentX.

virtual int AgentXMaster::bind_tcp (  )  [virtual]

Bind TCP 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.

virtual boolean AgentXMaster::is_response ( const AgentXPdu ,
const AgentXPdu  
) [virtual]

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.

virtual int AgentXMaster::accept_unix (  )  [protected, virtual]

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 boolean AgentXMaster::validate_address ( const NS_SNMP OctetStr &   )  const [protected, virtual]

Validate the supplied source address against the addresses in the agentppAgentXExtSrcAddrTable.

Returns:
TRUE if the source address is valid, FALSE otherwise.


Member Data Documentation

int AgentXMaster::timeout [protected]


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

Generated on Tue May 26 23:32:15 2009 for AgentX++ by  doxygen 1.5.6