Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netsnmp_multiplexer(3) [suse man page]

multiplexer(3)							     net-snmp							    multiplexer(3)

NAME
multiplexer - Splits mode requests into calls to different handlers. Functions netsnmp_mib_handler * netsnmp_get_multiplexer_handler (netsnmp_mib_handler_methods *req) returns a multiplixer handler given a netsnmp_mib_handler_methods structure of subhandlers. int netsnmp_multiplexer_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) implements the multiplexer helper Detailed Description Splits mode requests into calls to different handlers. The multiplexer helper lets you split the calling chain depending on the calling mode (get vs getnext vs set). Useful if you want different routines to handle different aspects of SNMP requests, which is very common for GET vs SET type actions. Functionally: 1. GET requests call the get_method 2. GETNEXT requests call the getnext_method, or if not present, the get_method. 3. GETBULK requests call the getbulk_method, or if not present, the getnext_method, or if even that isn't present the get_method. 4. SET requests call the set_method, or if not present return a SNMP_ERR_NOTWRITABLE error. Function Documentation netsnmp_mib_handler* netsnmp_get_multiplexer_handler (netsnmp_mib_handler_methods * req) returns a multiplixer handler given a netsnmp_mib_handler_methods structure of subhandlers. Definition at line 33 of file multiplexer.c. int netsnmp_multiplexer_helper_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) implements the multiplexer helper Definition at line 54 of file multiplexer.c. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.5 23 Sep 2009 multiplexer(3)

Check Out this Related Man Page

row_merge(3)							     net-snmp							      row_merge(3)

NAME
row_merge - Calls sub handlers with request for one row at a time. Defines #define ROW_MERGE_WAITING 0 #define ROW_MERGE_ACTIVE 1 #define ROW_MERGE_DONE 2 #define ROW_MERGE_HEAD 3 Functions netsnmp_mib_handler * netsnmp_get_row_merge_handler (int prefix_len) returns a row_merge handler that can be injected into a given handler chain. int netsnmp_register_row_merge (netsnmp_handler_registration *reginfo) functionally the same as calling netsnmp_register_handler() but also injects a row_merge handler at the same time for you. netsnmp_row_merge_status * netsnmp_row_merge_status_get (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, int create_missing) retrieve row_merge_status int netsnmp_row_merge_status_first (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo) Determine if this is the first row. int netsnmp_row_merge_status_last (netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo) Determine if this is the last row. int netsnmp_row_merge_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) Implements the row_merge handler. void netsnmp_init_row_merge (void) initializes the row_merge helper which then registers a row_merge handler as a run-time injectable handler for configuration file use. Detailed Description Calls sub handlers with request for one row at a time. This helper splits a whole bunch of requests into chunks based on the row index that they refer to, and passes all requests for a given row to the lower handlers. This is useful for handlers that don't want to process multiple rows at the same time, but are happy to iterate through the request list for a single row. Function Documentation netsnmp_mib_handler* netsnmp_get_row_merge_handler (int prefix_len) returns a row_merge handler that can be injected into a given handler chain. Definition at line 28 of file row_merge.c. void netsnmp_init_row_merge (void) initializes the row_merge helper which then registers a row_merge handler as a run-time injectable handler for configuration file use. Definition at line 360 of file row_merge.c. int netsnmp_register_row_merge (netsnmp_handler_registration * reginfo) functionally the same as calling netsnmp_register_handler() but also injects a row_merge handler at the same time for you. Definition at line 42 of file row_merge.c. int netsnmp_row_merge_helper_handler (netsnmp_mib_handler * handler, netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, netsnmp_request_info * requests) Implements the row_merge handler. Definition at line 154 of file row_merge.c. int netsnmp_row_merge_status_first (netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo) Determine if this is the first row. returns 1 if this is the first row for this pass of the handler. Definition at line 110 of file row_merge.c. netsnmp_row_merge_status* netsnmp_row_merge_status_get (netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo, int create_missing) retrieve row_merge_status Definition at line 67 of file row_merge.c. int netsnmp_row_merge_status_last (netsnmp_handler_registration * reginfo, netsnmp_agent_request_info * reqinfo) Determine if this is the last row. returns 1 if this is the last row for this pass of the handler. Definition at line 130 of file row_merge.c. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.5 23 Sep 2009 row_merge(3)
Man Page