#include #include #include "snmp_pp/snmp_pp.h" #include "settings.h" #include "switch.h" #include "subscriber.h" #include "logger.h" GTS::Logger logger; int main() { GTS::Settings settings; settings.setIsDebug(true); settings.setUpProfileId(1); settings.setDownProfileId(2); int status = 0; Snmp snmp(status); if (status) { logger << "Failed to initialize SNMP" << std::endl; return -1; } GTS::Switch sw(settings, snmp, "172.16.47.10", "gts_community_r", "gts_community_w", 10); sw.addSubscriber( GTS::Subscriber( "485b3936a273", 1, 8192, 8192, 256, 512 ) ); sw.sync(); return 0; }