X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/911b6d1f5643bf4d353774f82a8b742bec4e5677..78bad7b5d52407128d5069cb4003f7d6d0d10dd1:/projects/stargazer/plugins/other/snmp/snmp.h?ds=sidebyside diff --git a/projects/stargazer/plugins/other/snmp/snmp.h b/projects/stargazer/plugins/other/snmp/snmp.h index 90dba45e..c872523a 100644 --- a/projects/stargazer/plugins/other/snmp/snmp.h +++ b/projects/stargazer/plugins/other/snmp/snmp.h @@ -19,7 +19,10 @@ class USER; class SETTINGS; class SNMP_AGENT; -typedef bool (SNMP_AGENT::*SNMPPacketHandler)(const SMUX_PDUs_t * pdus); +typedef bool (SNMP_AGENT::*SMUXPacketHandler)(const SMUX_PDUs_t * pdus); +typedef bool (SNMP_AGENT::*PDUsHandler)(const PDUs_t * pdus); +typedef std::map SMUXHandlers; +typedef std::map PDUsHandlers; //----------------------------------------------------------------------------- class SNMP_AGENT_SETTINGS { public: @@ -76,6 +79,10 @@ private: bool PDUsHandler(const SMUX_PDUs_t * pdus); bool CommitOrRollbackHandler(const SMUX_PDUs_t * pdus); + bool GetRequestHandler(const PDUs_t * pdus); + bool GetNextRequestHandler(const PDUs_t * pdus); + bool SetRequestHandler(const PDUs_t * pdus); + mutable std::string errorStr; SNMP_AGENT_SETTINGS snmpAgentSettings; MODULE_SETTINGS settings; @@ -87,7 +94,8 @@ private: int sock; - std::map handlers; + SMUXHandlers smuxHandlers; + PDUsHandlers pdusHandlers; }; //-----------------------------------------------------------------------------