thanks........ On Mon, Jun 4, 2012 at 7:30 AM, Robert Story <rst...@freesnmp.com> wrote: > On Mon, 4 Jun 2012 17:41:12 +0530 Ravi wrote: > RK> Can anybody tell me what is the purpose of following optional > RK> parameters in "netsnmp_handler_registration" structure. > > Have you looked at the API documentation? Try > > http://net-snmp.sourceforge.net/dev/agent/group__agent__mib__registering.html#gacbd76661a556322a249967447ff67707 > > RK> int timeout; > > This is likely used for AgentX registrations. > > RK> int global_cacheid; > > This is used internally in the agent code. > > RK> /** > RK> * void ptr for registeree > RK> */ > RK> void * my_reg_void; > > This one is exactly what it says.. a pointer for the code that registered the > handler, which the handler can use for whatever it needs. One example might be > a single handler that is registered under several OIDs, and uses this pointer > to determine what data to use when called to handle a particular request.
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders