SNMPpp  v0.0.3-20-7eeb228
Classes, methods, and functions to use net-snmp from C++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Session.hpp File Reference
#include <SNMPpp/net-snmppp.hpp>
#include <string>
Include dependency graph for Session.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 SNMPpp
 

Constant Groups

 SNMPpp
 

Typedefs

typedef void * SNMPpp::SessionHandle
 net-snmp uses a void * for the "Single API" opaque session pointer, but SNMPpp prefers to have an actual named type to make it more obvious when passing the session pointer by reference in C++. More...
 

Functions

void SNMPpp::closeSession (SessionHandle &sessionHandle)
 Sessions must be closed when no longer needed. More...
 
void SNMPpp::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. More...