summaryrefslogtreecommitdiff
path: root/ASNMP
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2004-08-06 13:28:42 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2004-08-06 13:28:42 +0000
commit3f0d33385351b4ca1710ff9a588fd27864b8c3f4 (patch)
treec4dad10cf3bb5d04e19e1129b85112e57812e68c /ASNMP
parent90c3d3fb811e19e86a51711d12b83a4b30456ab6 (diff)
downloadATCD-3f0d33385351b4ca1710ff9a588fd27864b8c3f4.tar.gz
ChangeLogTag:Fri Aug 6 07:58:54 2004 Douglas C. Schmidt <schmidt@cs.wustl.edu>
Diffstat (limited to 'ASNMP')
-rw-r--r--ASNMP/ChangeLog6
-rw-r--r--ASNMP/asnmp/transaction.cpp6
-rw-r--r--ASNMP/asnmp/transaction.h41
3 files changed, 34 insertions, 19 deletions
diff --git a/ASNMP/ChangeLog b/ASNMP/ChangeLog
index df494ddf3bb..980b2e7a824 100644
--- a/ASNMP/ChangeLog
+++ b/ASNMP/ChangeLog
@@ -1,3 +1,9 @@
+Fri Aug 6 08:14:12 2004 Douglas C. Schmidt <schmidt@cs.wustl.edu>
+
+ * asnmp/transaction.{h,cpp}: Added a get_handle() call to
+ session. Thanks to Geo Sebastian <geosebastian@onmobile.com>
+ for this fix.
+
Fri May 7 14:42:22 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
* tests/Counter_Test.cpp (TestCounter):
diff --git a/ASNMP/asnmp/transaction.cpp b/ASNMP/asnmp/transaction.cpp
index e7c703aa865..1396ea3e488 100644
--- a/ASNMP/asnmp/transaction.cpp
+++ b/ASNMP/asnmp/transaction.cpp
@@ -201,3 +201,9 @@ int transaction::send()
}
transaction_result::~transaction_result() {}
+
+ACE_HANDLE
+transaction::get_handle () const
+{
+ return session_.get_handle ();
+}
diff --git a/ASNMP/asnmp/transaction.h b/ASNMP/asnmp/transaction.h
index eba2d51f4bb..98d5890913e 100644
--- a/ASNMP/asnmp/transaction.h
+++ b/ASNMP/asnmp/transaction.h
@@ -35,37 +35,40 @@ 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
- private:
+ ACE_HANDLE get_handle () const;
+ // Return session_ handle.
+
+private:
transaction(const transaction&);
// disallow copy construction