> I'd like to know if is possible to call the Trap Api function from > outside the snmpd agent code. > I've the code produced by mib2c for my specific trap and I intend to > call them inside my own module. > Is there any problem doing so ?
The "send_easy_trap", "send_v2trap" and similar calls are designed for use within an agent application (including subagents). It's not possible to use them in a non-agent based application. > May I produce a crash of the application if another thread try to > calls the same Trap Api function ? That's not advisable, no. The agent code is not thread safe, and this includes trap generation. It's unlikely that this would actually crash your application, but it's only really safe to keep *all* SNMP-related code within a single thread. Dave ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Net-snmp-coders mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
