Manual Pages for UNIX Darwin command on man netsnmp_mode_end_call
MyWebUniversity

Manual Pages for UNIX Darwin command on man netsnmp_mode_end_call

momdoedeenedndcaclall:l:atatthteheenedndofofa asesreireisesofofrerqeuqeusetsst,s,caclalllanaontohtehrerhahnadnldelrerhohooko.k(.3()3)

NAME

netsnmpmodeendcall - at the end of a series of requests, call

another handler hook. FFuunnccttiioonnss nneettssnnmmppmmiibbhhaannddlleerr * nneettssnnmmppggeettmmooddeeeennddccaallllhhaannddlleerr (netsnmpmodehandlerlist *endlist) returns a modeendcall handler that can be injected into a given handler chain. netsnmpmodehandlerlist * nneettssnnmmppmmooddeeeennddccaallllaaddddmmooddeeccaallllbbaacckk (netsnmpmodehandlerlist *endlist, int mode, nneettssnnmmppmmiibbhhaannddlleerr *callbackh) adds a mode specific callback to the callback list. int nneettssnnmmppmmooddeeeennddccaallllhheellppeerr (nneettssnnmmppmmiibbhhaannddlleerr *handler, nneettssnnmmpphhaannddlleerrrreeggiissttrraattiioonn *reginfo, nneettssnnmmppaaggeennttrreeqquueessttiinnffoo *reqinfo, nneettssnnmmpprreeqquueessttiinnffoo *requests) DDeettaaiilleedd DDeessccrriippttiioonn Handlers that want to loop through a series of requests and then receive a callback at the end of a particular MODE can use this helper to make this possible. For most modules, this is not needed as the handler itself could perform a for() loop around the request list and then perform its actions afterwards. However, if something like the serialize helper is in use this isn't possible because not all the requests for a given handler are being passed downward in a single group. Thus, this helper *must* be added above other helpers like the serialize helper to be useful. Multiple mode specific handlers can be registered and will be called in the order they were regestered in. Callbacks regesterd with a mode of NETSNMPMODEENDALLMODES will be called for all modes. FFuunnccttiioonn DDooccuummeennttaattiioonn nneettssnnmmppmmiibbhhaannddlleerr** nneettssnnmmppggeettmmooddeeeennddccaallllhhaannddlleerr ((nneettssnnmmppmmooddeehhaannddlleerrlliisstt ** eennddlliisstt)) returns a modeendcall handler that can be injected into a given handler chain. PPaarraammeetteerrss:: endlist The callback list for the handler to make use of. RReettuurrnnss::

An injectable Net-SNMP handler.

Definition at line 48 of file modeendcall.c. References netsnmpmibhandlers::myvoid, netsnmpcreatehandler(), and netsnmpmibhandler. nneettssnnmmppmmooddeehhaannddlleerrlliisstt** nneettssnnmmppmmooddeeeennddccaallllaaddddmmooddeeccaallllbbaacckk ((nneettssnnmmppmmooddeehhaannddlleerrlliisstt ** eennddlliisstt,, iinntt mmooddee,, nneettssnnmmppmmiibbhhaannddlleerr ** ccaallllbbaacckkhh)) adds a mode specific callback to the callback list. PPaarraammeetteerrss:: endinfo the information structure for the modeendcall helper. Can be NULL to create a new list. mode the mode to be called upon. A mode of NETSNMPMODEENDALLMODES = all modes. callbackh the netsnmpmibhandler callback to call. RReettuurrnnss:: the new registration information list upon success. Definition at line 68 of file modeendcall.c. References netsnmpmibhandler, netsnmpmibhandlers::next, and SNMPMALLOCTYPEDEF.

mondeet-esnndmpcall: at the end of a serie2s4oJfanre2q0u0e5sts, call another handler hook.(3)




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™