Hello all, I've a (stupid) question linked to the Handler signature. When using mib2c, the Handler is created with the following signature:
MyHandler(netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) In all the examples, I've read only the 3rd and 4th arguments is used. According to my understanding, the 3rd one is linked to the agent request information (set or get) and the 4th one is linked to the value. Regarding the doxygen man page, I've found the following signature which is quite closed: int netsnmp_call_handler ( netsnmp_mib_handler <http://www.net-snmp.org/dev/agent/structnetsnmp__mib__handler__s.html> * *next_handler*, netsnmp_handler_registration <http://www.net-snmp.org/dev/agent/structnetsnmp__handler__registration__s.html> * *reginfo*, netsnmp_agent_request_info <http://www.net-snmp.org/dev/agent/structnetsnmp__agent__request__info__s.html> * *reqinfo*, netsnmp_request_info <http://www.net-snmp.org/dev/agent/structnetsnmp__request__info__s.html> * *requests* ) So, what is the meaning of the 1st and 2nd argument? I've assumed that the 1st one is linked to the registration process but without any certitude. Thanks by advance for your help. -- B/R Phil
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders