On 01/02/07, Clement Hsu <[EMAIL PROTECTED]> wrote:
> I saw the structure of the snmp_session has a declaration of
> netsnmp_callback.

That's part of the standard process of processing an incoming PDU.
It's not really part of the public API.   It's certainly not relevant to your
main requirement.

> However, I don't  realize how to apply callback to implement trap that can
> make it receive some system call. Does there exist any documents or
> introductions about how to use callback.

Forget about this field.
Either use the "signal" mechanism (if your system call would trigger on
this), or have a look at "snmp_alarm(3)" - that's the standard way of
regularly checking for significant things happening.

In general, you're better off browsing through the man pages, and
getting a feel for what various API calls are meant to do, rather than
reading the raw code and trying to guess how things might work.

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to