Logo
Home page Net-SNMP

Archive Search:

Require all words?

Site Search:
Google
Main Page | Modules | Data Structures | File List | Data Fields | Related Pages | Examples

serialize: Calls sub handlers one request at a time.
[utility_handlers: simplify request processing]

This functionally passes in one request at a time into lower handlers rather than a whole bunch of requests at once. More...

Functions

netsnmp_mib_handler netsnmp_get_serialize_handler (void)
  returns a serialize handler that can be injected into a given handler chain.
int  netsnmp_register_serialize (netsnmp_handler_registration *reginfo)
  functionally the same as calling netsnmp_register_handler() but also injects a serialize handler at the same time for you.
int  netsnmp_serialize_helper_handler (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests)
  Implements the serial handler.
void  netsnmp_init_serialize (void)
  initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use.

Detailed Description

This functionally passes in one request at a time into lower handlers rather than a whole bunch of requests at once.

This is useful for handlers that don't want to iterate through the request lists themselves. Generally, this is probably less efficient so use with caution. The serialize handler might be useable to dynamically fix handlers with broken looping code, however.


Function Documentation

netsnmp_mib_handler* netsnmp_get_serialize_handler void   ) 
 

returns a serialize handler that can be injected into a given handler chain.

Definition at line 30 of file serialize.c.

References netsnmp_create_handler().

Referenced by netsnmp_init_serialize(), and netsnmp_register_serialize().

void netsnmp_init_serialize void   ) 
 

initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use.

Definition at line 92 of file serialize.c.

References netsnmp_get_serialize_handler(), and netsnmp_register_handler_by_name().

int netsnmp_register_serialize netsnmp_handler_registration reginfo  ) 
 

functionally the same as calling netsnmp_register_handler() but also injects a serialize handler at the same time for you.

Definition at line 39 of file serialize.c.

References netsnmp_get_serialize_handler(), netsnmp_handler_registration, netsnmp_inject_handler(), and netsnmp_register_handler().

Referenced by netsnmp_register_instance(), netsnmp_register_read_only_instance(), netsnmp_register_read_only_scalar(), and netsnmp_register_scalar().

int netsnmp_serialize_helper_handler netsnmp_mib_handler handler,
netsnmp_handler_registration reginfo,
netsnmp_agent_request_info reqinfo,
netsnmp_request_info requests
 

Implements the serial handler.

Definition at line 47 of file serialize.c.

References netsnmp_call_next_handler(), netsnmp_handler_registration, netsnmp_mib_handler, and netsnmp_request_info_s::next.


Generated on Fri Dec 30 13:48:00 2005 for net-snmp by  doxygen 1.3.9.1

Valid CSS!


Last modified: Thursday, 01-Mar-2007 16:20:01 PST
For questions regarding web content and site functionality, please write to the net-snmp-users mail list.