diff options
Diffstat (limited to 'ASNMP/asnmp/transaction.h')
-rw-r--r-- | ASNMP/asnmp/transaction.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/ASNMP/asnmp/transaction.h b/ASNMP/asnmp/transaction.h index d114bd40d1f..98d5890913e 100644 --- a/ASNMP/asnmp/transaction.h +++ b/ASNMP/asnmp/transaction.h @@ -1,18 +1,21 @@ /* -*-C++-*- */ +// $Id$ #ifndef TRANSACTION_ #define TRANSACTION_ -//============================================================================= -/** - * @file transaction.h - * - * $Id$ - * - * @brief - * - * @author Michael R. MacFaden port to ACE / use Reactor pattern - */ -//============================================================================= - +// ============================================================================ +// +// = LIBRARY +// asnmp +// +// = FILENAME +// transaction.h +// +// = DESCRIPTION +// +// = AUTHOR +// Michael R. MacFaden port to ACE / use Reactor pattern +// +// ============================================================================ #include "ace/Event_Handler.h" @@ -26,51 +29,48 @@ #include "asnmp/wpdu.h" // cmu adapter class #include "ace/SOCK_Dgram.h" -/** - * @class transaction - * - * @brief Used to manage the details of a particular transaction betwen - * two SNMP agents. Uses SnmpTarget class to implement retry/timeout - */ class ASNMP_Export transaction : public ACE_Event_Handler + // = TITLE + // Used to manage the details of a particular transaction betwen + // two SNMP agents. Uses SnmpTarget class to implement retry/timeout { int retry_counter_; transaction_result * result_; public: - /// constructor - /// destructor transaction(const Pdu& pdu, const UdpTarget& target, ACE_SOCK_Dgram& io); transaction(ACE_SOCK_Dgram& io); + // constructor ~transaction(); + // destructor - /// begin polling for values int run(); int run(transaction_result *r); // Async interface, with callback object + // begin polling for values - /// return pdu with result from agent after run() is completed rc = 0 - /// optionally get community str int result(Pdu& pdu, char *comm_str = 0, ACE_INET_Addr *from_addr = 0); + // return pdu with result from agent after run() is completed rc = 0 + // optionally get community str - /// called by reactor when data is ready to be read in from OS memory - /// used for resend in asynchronous run() virtual int handle_input (ACE_HANDLE fd); + // called by reactor when data is ready to be read in from OS memory virtual int handle_timeout (const ACE_Time_Value &, const void *); + // used for resend in asynchronous run() - /// transmit buffer command to network... int send(); + // transmit buffer command to network... - /// pre: handle_input called - /// retrieve the sender's from address from the last pkt const ACE_INET_Addr& get_from_addr() const; + // pre: handle_input called + // retrieve the sender's from address from the last pkt - /// Return session_ handle. ACE_HANDLE get_handle () const; + // Return session_ handle. private: - /// disallow copy construction transaction(const transaction&); + // disallow copy construction wpdu wp_; // wire pdu UdpTarget params_; // params |