[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-coders
Subject:    Re: what function should be called to free cached data
From:       "Dave Shield" <D.T.Shield () csc ! liv ! ac ! uk>
Date:       2006-10-24 8:17:49
Message-ID: c64ae3380610240117l5980ef96o8172b8a2d93bd431 () mail ! gmail ! com
[Download RAW message or body]

On 23/10/06, redhouse101 <redhouse101@gmail.com> wrote:
> Inside subagent, some data are cached. What API function should I call to
> un-register the MIB and free cached data  when my subagent is shutdown?

When the agent is shutdown, it should unregister all MIBs automatically.
If you need to do extra processing on shutdown, then declare a routine

   'shutdown_XXX'

(using the same token as 'init_XXX') and re-run configure.
The agent should then invoke this routine when it shuts down.

Dave

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic