---
name: "netsnmp_serialize"
section: "3snmp"
platform: "linux"
package: "libsnmp-dev"
version: "5.4.3~dfsg-2.8+deb7u1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/netsnmp_serialize"
---

# netsnmp\_serialize(3snmp)

Calls sub handlers one request at a time.

## NAME

serialize -

Calls sub handlers one request at a time.

### 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

Calls sub handlers one request at a time.

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 31 of file serialize.c.

### 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 93 of file serialize.c.

### 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 40 of file serialize.c.

### 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 48 of file serialize.c.

## Author

Generated automatically by Doxygen for net-snmp from the source code.
