HI!
        Let me thank for your constant support.

>       The var_system routine doesn't know whether this is a GET
> Or a SET request.  But the code that *calls* the var_system
> Routine does.
                Which code is calling var_system function and how
calling code will tell it is set request to the function var_system so
that var_system will set up the write_method hook value, here what is
hook value to invoke the SET processing code for that object.

     With Regards,
G. Siva Prakash Reddy.




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Shield
Sent: Wednesday, January 02, 2008 5:32 PM
To: Siva Prakash Reddy G
Cc: [email protected]
Subject: Re: Return type

On 02/01/2008, Siva Prakash Reddy G <[EMAIL PROTECTED]> wrote:
> when I execute snmpset command example....
> how var_system function will know that it is set request....

It doesn't.
The var_system function is called in an identical fashion for both
a GET request and a SET request.


>                 how it will know it is a set request and how
> it will execute the *write_method = writeSystem;

It doesn't know whether this is a GET or a SET request,
so it should return the appropriate 'write_method' hook
routine.

> if it is get request then writeSystem function won't be called.
> How this is can be happened.

The var_system routine doesn't know whether this is a GET
or a SET request.  But the code that *calls* the var_system
routine does.
  So var_system will set up the write_method hook value,
just in case this is a SET request.   If it is, then the agent
driving code will use this hook value to invoke the SET
processing code for that object.
   If this is actually a GET request, then the agent driving
code will simply ignore the 'write_method' value.


Dave


The information contained in, or attached to, this e-mail, contains 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and is subject to legal privilege. If you 
have received this e-mail in error you should notify the sender immediately by 
reply e-mail, delete the message from your system and notify your system 
manager. Please do not copy it for any purpose, or disclose its contents to any 
other person. The views or opinions presented in this e-mail are solely those 
of the author and do not necessarily represent those of the company. The 
recipient should check this e-mail and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.

www.aztecsoft.com

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
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

Reply via email to