---
name: "netsnmp_multiplexer"
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_multiplexer"
---

# netsnmp\_multiplexer(3snmp)

Splits mode requests into calls to different handlers.

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