>>>>> On Fri, 21 Jan 2005 09:02:12 +0800, 苗迎华 <[EMAIL PROTECTED]> said:

miaoyinghua> I'm trying to extend a subagent basing on
miaoyinghua> example-demon.c(a subagent example downloaded from the
miaoyinghua> tutorial html), and integrate the subagent process with
miaoyinghua> my other processes into a program. then all processes in
miaoyinghua> the program can send notification to master.

You should always use the same notification sending API regardless of
whether you're a master agent or a subagent.  See
agent/mibgroup/examples/notification.c for an example of how to use
this API.

miaoyinghua> I think I can use send_trap_to_sess(netsnmp_session *
miaoyinghua> sess, netsnmp_pdu *template_pdu) in every process to send
miaoyinghua> notifications.

You should not use that API to do it.

-- 
Wes Hardaker
Sparta


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to