SNMPpp  v0.0.3-20-7eeb228
Classes, methods, and functions to use net-snmp from C++
Get.hpp
Go to the documentation of this file.
1 // SNMPpp: https://sourceforge.net/p/snmppp/
2 // SNMPpp project uses the MIT license. See LICENSE for details.
3 // Copyright (C) 2013 Stephane Charette <stephanecharette@gmail.com>
4 
5 #pragma once
6 
7 #include <SNMPpp/net-snmppp.hpp>
8 #include <SNMPpp/Session.hpp>
9 #include <SNMPpp/OID.hpp>
10 #include <SNMPpp/PDU.hpp>
11 
12 
13 namespace SNMPpp
14 {
30  SNMPpp::PDU sync( SNMPpp::SessionHandle &session, SNMPpp::PDU &request );
31 
36  SNMPpp::PDU get( SNMPpp::SessionHandle &session, SNMPpp::PDU &pdu );
37 
44  SNMPpp::PDU get( SNMPpp::SessionHandle &session, const SNMPpp::OID &o );
45 
53 
63 
70  SNMPpp::PDU get( SNMPpp::SessionHandle &session, const SetOID &oids );
71 
79  SNMPpp::PDU getBulk( SNMPpp::SessionHandle &session, const SNMPpp::OID &o, const int maxRepetitions = 50, const int nonRepeaters = 0 );
80 
90  SNMPpp::PDU getBulk( SNMPpp::SessionHandle &session, SNMPpp::PDU &pdu, const int maxRepetitions = 50, const int nonRepeaters = 0 );
91 };
All net-snmp includes needed by SNMPpp can be easily included by using net-snmppp.hpp.
SNMPpp::PDU getBulk(SNMPpp::SessionHandle &session, const SNMPpp::OID &o, const int maxRepetitions=50, const int nonRepeaters=0)
Getbulk request, starting with the given OID.
Definition: Get.cpp:167
Definition: Get.hpp:13
Wrapper for net-snmp&#39;s PDU structures.
Definition: PDU.hpp:34
std::set< OID > SetOID
A std::set of OIDs.
Definition: OID.hpp:317
SNMPpp::PDU getNext(SNMPpp::SessionHandle &session, const SNMPpp::OID &o)
Get the next OID.
Definition: Get.cpp:81
SNMPpp::PDU sync(SNMPpp::SessionHandle &session, SNMPpp::PDU &request)
Send a PDU using the given SNMPpp::SessionHandle, and wait for a reply.
Definition: Get.cpp:11
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
Wrapper for net-snmp&#39;s OID arrays.
Definition: OID.hpp:26