SNMPAgent

Embedded SNMP agent or AgentX subagent (RAII, non-copyable).

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Functions

isReady
bool isReady()
Undocumented in source. Be warned that the author may not have intended to support it.
process
void process(bool block)

Process one round of pending requests. block=true waits until a request arrives; false returns immediately.

registerScalar
bool registerScalar(const(char)* name, Netsnmp_Node_Handler* fn, OID o)

Register a read-only scalar OID. net-snmp copies the OID internally.

shutdown
void shutdown()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

create
SNMPAgent create(const(char)* name, bool agentx)

name must outlive the agent.

Variables

initialised
bool initialised;
Undocumented in source.

Meta