SNMPSession

Lightweight SNMP session wrapper (RAII, non-copyable).

Destructor

~this
~this()
Undocumented in source.

Postblit

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

Members

Functions

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
get
SNMPResponse get(OID o)
Undocumented in source. Be warned that the author may not have intended to support it.
getBulk
SNMPResponse getBulk(OID o, int nonRepeaters, int maxRepetitions)

SNMPv2c/v3 only. non_repeaters/max_repetitions map to errstat/errindex.

getNext
SNMPResponse getNext(OID o)
Undocumented in source. Be warned that the author may not have intended to support it.
isOpen
bool isOpen()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

open
SNMPSession open(const(char)* peername, const(char)* community, SNMPVersion ver)
Undocumented in source. Be warned that the author may not have intended to support it.
open
SNMPSession open(string peername, string community, SNMPVersion ver)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

handle
netsnmp_session* handle;
Undocumented in source.

Meta