00001 /*_############################################################################ 00002 _## 00003 _## agentx_reg.h 00004 _## 00005 _## 00006 _## AgentX++ v1.4.17 00007 _## ------------------------------------- 00008 _## Copyright (C) 2000-2009 - Frank Fock 00009 _## 00010 _## Use of this software is subject to the license agreement you received 00011 _## with this software and which can be downloaded from 00012 _## http://www.agentpp.com 00013 _## 00014 _## This is licensed software and may not be used in a commercial 00015 _## environment, except for evaluation purposes, unless a valid 00016 _## license has been purchased. 00017 _## 00018 _## Last updated: Tue May 26 23:31:10 CEST 2009 00019 _## 00020 _##########################################################################*/ 00021 00022 00023 #ifndef agentx_reg_h_ 00024 #define agentx_reg_h_ 00025 00026 #include <agentx_pp/agentx_pdu.h> 00027 00028 #ifdef AGENTPP_NAMESPACE 00029 namespace Agentpp { 00030 #endif 00031 00032 00033 class AgentXSession; 00034 00035 class AgentXRegEntry { 00036 00037 public: 00055 AgentXRegEntry(u_int, const AgentXRegion&, u_int, u_int, 00056 const NS_SNMP OctetStr&, u_char); 00057 00061 AgentXRegEntry(const AgentXRegEntry&); 00062 00066 virtual ~AgentXRegEntry(); 00067 00073 virtual AgentXRegEntry* clone(); 00074 00075 00076 virtual boolean operator<(const AgentXRegEntry&); 00077 virtual boolean operator>(const AgentXRegEntry&); 00078 virtual boolean operator==(const AgentXRegEntry&); 00079 00080 00081 virtual boolean is_duplicate_of(const AgentXRegEntry&); 00082 00083 virtual boolean is_overlapping(const AgentXRegEntry&); 00084 00085 AgentXRegion get_region() { return region; } 00086 00087 00088 u_int sessionID; 00089 AgentXRegion region; 00090 u_int priority, specific; 00091 NS_SNMP OctetStr context; 00092 u_char timeout; 00093 00094 u_int mibID; 00095 //OrderedList<AgentXNode> nodes; //may be used to speed up unregister 00096 }; 00097 00098 #ifdef AGENTPP_NAMESPACE 00099 } 00100 #endif 00101 00102 00103 #endif 00104