diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-09-16 21:19:02 +0000 |
commit | 40fdc8a404e75ab03b68cc62e9987cf208fd8c30 (patch) | |
tree | 37d9c4d3abe4aefd8a34ed797883dd2cd4862ca7 /ASNMP/asnmp/transaction.h | |
parent | c254b281f1b9a4ca19dd0c3ee73a0654a7718909 (diff) | |
download | ATCD-typecode-overhaul.tar.gz |
This commit was manufactured by cvs2svn to create branchtypecode-overhaul
'typecode-overhaul'.
Diffstat (limited to 'ASNMP/asnmp/transaction.h')
-rw-r--r-- | ASNMP/asnmp/transaction.h | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/ASNMP/asnmp/transaction.h b/ASNMP/asnmp/transaction.h index 98d5890913e..eba2d51f4bb 100644 --- a/ASNMP/asnmp/transaction.h +++ b/ASNMP/asnmp/transaction.h @@ -35,40 +35,37 @@ class ASNMP_Export transaction : public ACE_Event_Handler // two SNMP agents. Uses SnmpTarget class to implement retry/timeout { - int retry_counter_; - transaction_result * result_; + int retry_counter_; + transaction_result * result_; -public: + public: transaction(const Pdu& pdu, const UdpTarget& target, ACE_SOCK_Dgram& io); transaction(ACE_SOCK_Dgram& io); // constructor ~transaction(); // destructor - int run(); - int run(transaction_result *r); // Async interface, with callback object - // begin polling for values + int run(); + int run(transaction_result *r); // Async interface, with callback object + // begin polling for values - 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 + 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 - 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() + 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() - int send(); - // transmit buffer command to network... + int send(); + // transmit buffer command to network... - const ACE_INET_Addr& get_from_addr() const; - // 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 - ACE_HANDLE get_handle () const; - // Return session_ handle. - -private: + private: transaction(const transaction&); // disallow copy construction |