On 21/01/2008, 永胜 王 <[EMAIL PROTECTED]> wrote:
> I am a programmer working on the snmp protocol, I am willing to understand
> the protocol as deeply as I can, and that is why I am working on studing
> net-snmp code....
>
> But I am afraid I can not understand your code as it's too complicated to me
> to understand and I do not have so much exprenice in this field.
You are correct - the code of the Net-SNMP suite is not easy to understand
(even for those of us who have been working on it for years).
I would suggest that you don't try to read all of the code all at once.
The first thing is probably to get a good feel for how SNMP works in practise,
by using the tools we provide to run queries against the agent, and see
what happens.
When you're happy with the way the protocol operates, try looking
at the code for the command-line tools (snmpget etc), and see if you
can understand how that relates to the behaviour you are seeing.
I wouldn't bother following the library calls just yet - that would get
you into murky water very quickly! Just concentrate on following the
application-level flow of control.
It's a bit harder to advise you regarding the agent - that's inherently a
much more complex beast.
But remember that you aren't going to pick up ten+ years' experience
overnight! It might be sensible to settle on a particular project you are
interested in, and concentrate on that.
Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders