32 void openSession( SessionHandle &sessionHandle,
const std::string &server =
"udp:127.0.0.1:161",
const std::string &community =
"public",
const int version = SNMP_VERSION_2c,
const int retryAttempts = 3 );
All net-snmp includes needed by SNMPpp can be easily included by using net-snmppp.hpp.
void closeSession(SessionHandle &sessionHandle)
Sessions must be closed when no longer needed.
Definition: Session.cpp:57
void openSession(SessionHandle &sessionHandle, const std::string &server="udp:127.0.0.1:161", const std::string &community="public", const int version=SNMP_VERSION_2c, const int retryAttempts=3)
Open a net-snmp session and return a session handle.
Definition: Session.cpp:11
std::string version(void)
Return the SNMPpp version number.
Definition: SNMPpp.cpp:9
void * SessionHandle
net-snmp uses a void * for the "Single API" opaque session pointer, but SNMPpp prefers to have an act...
Definition: Session.hpp:20