|
NetBurner 3.5.7
PDF Version |
Registers a scalar write callback with the SNMP agent. More...
#include <snmp_table.h>
Public Member Functions | |
| SNMPWriteObject (const char *oid, int typ, PutpIFunc *pf, uint32_t commmask) | |
| Register a write callback for one SNMP scalar. | |
Registers a scalar write callback with the SNMP agent.
Application code does not instantiate this class directly — use the SNMPWRITEFUNC macro, which constructs a file-static instance so the callback is registered before main() runs. The constructor is overloaded on every write-callback signature in Read/write callback function signatures; the compiler picks the overload that matches your setter, which in turn selects the matching ASN.1 dispatcher.
|
inline |
Register a write 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 setter; the overload chosen follows from its signature. |
| commmask | Community mask (typically WRITE_COMMUNITY_MASK). |