|
NetBurner 3.5.7
PDF Version |
Registers a scalar read callback with the SNMP agent. More...
#include <snmp_table.h>
Public Member Functions | |
| SNMPReadObject (const char *oid, int typ, GetpIFunc *pf, uint32_t commmask) | |
| Register a read callback for one SNMP scalar. | |
Registers a scalar read callback with the SNMP agent.
Application code does not instantiate this class directly — use the SNMPREADFUNC macro, which constructs a file-static instance so the callback is registered before main() runs. The constructor is overloaded on every read-callback signature in Read/write callback function signatures; the compiler picks the overload that matches your getter, which in turn selects the matching ASN.1 dispatcher.
|
inline |
Register a read callback for one SNMP scalar.
| oid | Dotted-decimal OID string. Scalars end in .0. |
| typ | One of the ASN_type* tags (e.g. ASN_typeInteger32). |
| pf | Pointer to the getter; the overload chosen follows from its signature. |
| commmask | Community mask (typically READ_COMMUNITY_MASK). |