summaryrefslogtreecommitdiff
path: root/ASNMP
diff options
context:
space:
mode:
authormrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-04 23:44:06 +0000
committermrm <mrm@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-04 23:44:06 +0000
commite9c736b675a7890312ee1119c897aef8db7c8d6f (patch)
tree85b65b7cfd9ee4f4d64eaf0ef32b449d59ada816 /ASNMP
parent153e7e64a81dc01ad8f68bc2b8ff860a267acb93 (diff)
downloadATCD-e9c736b675a7890312ee1119c897aef8db7c8d6f.tar.gz
agent work
Diffstat (limited to 'ASNMP')
-rw-r--r--ASNMP/asnmp/snmp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ASNMP/asnmp/snmp.h b/ASNMP/asnmp/snmp.h
index b1ece5bab5f..cca2dd7be6e 100644
--- a/ASNMP/asnmp/snmp.h
+++ b/ASNMP/asnmp/snmp.h
@@ -53,8 +53,8 @@ class ACE_Export Snmp
// communicate with another SNMP Version 1 agent
{
public:
- Snmp();
- ~Snmp();
+ Snmp(unsigned short port = INADDR_ANY);
+ virtual ~Snmp();
int get( Pdu &pdu, UdpTarget &target);
// retrieve data from a peer agent for a given list of oid values
@@ -81,7 +81,7 @@ class ACE_Export Snmp
char * error_string();
// retrieve a reason string if any of the above commands fail
-private:
+ protected:
void check_default_port(UdpTarget& target,unsigned short port=DEF_AGENT_PORT);
int run_transaction(Pdu& pdu, UdpTarget& target);
int validate_args(const Pdu& pdu, const UdpTarget& target) const;