Thank U Dave -sanjay Dave Shield wrote: On 28 January 2010 06:45, sanjaykumar <sanjay.ku...@globaledgesoft.com> wrote:I am not able to understand the meaning of following parameters. As there numerous function in net-snmp-5.4.2.1 having following parameter. Could someone explain the meaning of these parameters in DETAILS. 1. int majorID 2. int minorID 3. void *serverarg 4. void *clientarg As in function: int snmpv3_store(int majorID, int minorID, void *serverarg, void *clientarg)These parameters are related to how the "callback" mechanism operates. The first two parameters (major, minor) match those used when registering the callback. (see snmpNotifyTable). These are used to control when this particular callback routine will be invoked, and are passed to the callback routine in case it needs to distinguish between different possible invocations. It is also possible to supply some arbitrary data as part of this registration (using the final parameter of the registration call). This is then passed to the callback routine as the 'clientarg' parameter. The code that triggers the callback (snmp_call_callbacks) can also provide some arbitrary data, which is passed to the callback routine as 'serverarg'. This is used by (e.g.) the access control callbacks, or those concerned with registering MIB modules. If you search the code for mention of SNMP_CALLBACK, you'll find examples of both registration of such callbacks (snmp_register_callback), and where these are callbacks are invoked (snmp_call_callbacks). This mechanism is used both within the Net-SNMP library (when majorID is SNMP_CALLBACK_LIBRARY), and the agent (SNMP_CALLBACK_APPLICATION) Dave |
------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com
_______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users