summaryrefslogtreecommitdiff
path: root/ASNMP/asnmp/snmp.h
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-14 13:32:36 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-07-14 13:32:36 +0000
commit6377bd53ffdc519e675edf7908a37658844ee75f (patch)
treef61fe0365b2ebf0351cfa90ba20fecb39814a434 /ASNMP/asnmp/snmp.h
parent87ef0701eae02da285c119724516a3c90eeb2efe (diff)
downloadATCD-6377bd53ffdc519e675edf7908a37658844ee75f.tar.gz
ChangeLogTag: Wed Jul 14 08:26:42 1999 Brian Raven <brianr@mrpotatohead.liffe.com>
Diffstat (limited to 'ASNMP/asnmp/snmp.h')
-rw-r--r--ASNMP/asnmp/snmp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/ASNMP/asnmp/snmp.h b/ASNMP/asnmp/snmp.h
index 65a7700721b..d57a9711324 100644
--- a/ASNMP/asnmp/snmp.h
+++ b/ASNMP/asnmp/snmp.h
@@ -102,6 +102,12 @@ class ACE_Export Snmp : public transaction_result
void result(transaction * t, int rc);
// for async transaction results
+ static void override_host_name(const char* name);
+ // allow the host name to be overriden
+
+ static void get_host_name(char* name, int len);
+ // returns the overriden host name
+
protected:
void check_default_port(UdpTarget& target,unsigned short port=DEF_AGENT_PORT);
int run_transaction(Pdu& pdu, UdpTarget& target);
@@ -121,7 +127,8 @@ class ACE_Export Snmp : public transaction_result
unsigned req_id_;
// transaction request id
+
+ static char host_name_[MAXHOSTNAMELEN];
};
#endif //SNMP_CLS_
-