>>>>> "ss" == santhosh sundarasamy <[EMAIL PROTECTED]> writes:

ss> Hi
ss> Is there a way to register call back function which needs to be
ss> invoked after all the SNMP agent init ( all MIB module init ) gets over?
ss> I had seen snmplib/callback.c, and tried snmp_regiter_callback()
ss> with  SNMP_CALLBACK_SESSION_INIT. But my function is not invoked after
ss> init procedure.

ss> Please let me know how / what API to use for the same? 

There should probably be something later than this, but I don't think
there is.  But there is a callback that happens after all the config
processing has been done, which has been sufficient in the past for
most modules:

    snmp_register_callback(SNMP_CALLBACK_LIBRARY,
                           SNMP_CALLBACK_POST_READ_CONFIG,
                           your_super_function_here, NULL);
-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to