source: nscp/modules/NSClientCompat/NSClientCompat.h @ 1eef1ee

0.4.00.4.10.4.2stable
Last change on this file since 1eef1ee was 1eef1ee, checked in by Michael Medin <michael@…>, 8 years ago

*OBS* This might no longer work! (expect updated code in the next few days if things are broken)

  • Fundamental API changes (due to NRPE compatibility)
    • HandleCommand? has changed
    • Inject has changed
    • Most API calls have new "return codes" (typedef:ed INT to allow for return code compiler checks)
    • A lot of the old return codes have changed
  • Preliminary NRPE support (can parse and execute incoming requests, cant return data yet, and no encryption)
  • New SimpleSocket? in include/ will be used as base class for Listeners
  • A lot of rewrite to the NSC API
  • Property mode set to 100644
File size: 542 bytes
Line 
1#include "PDHCollector.h"
2
3NSC_WRAPPERS_MAIN();
4
5class NSClientCompat {
6private:
7        PDHCollectorThread pdhThread;
8        PDHCollector *pdhCollector;
9
10public:
11        NSClientCompat();
12        virtual ~NSClientCompat();
13        // Module calls
14        bool loadModule();
15        bool unloadModule();
16        std::string getModuleName();
17        NSCModuleWrapper::module_version getModuleVersion();
18        bool hasCommandHandler();
19        bool hasMessageHandler();
20        NSCAPI::nagiosReturn handleCommand(const std::string command, const unsigned int argLen, char **char_args, std::string &msg, std::string &perf);
21};
Note: See TracBrowser for help on using the repository browser.