Changeset 9bd40e2 in nscp for modules/NRPEServer/NRPEServer.h
- Timestamp:
- 05/06/12 21:25:45 (14 months ago)
- Branches:
- master, 0.4.1, 0.4.2
- Children:
- ef5832c
- Parents:
- 53473f7
- File:
-
- 1 edited
-
modules/NRPEServer/NRPEServer.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
modules/NRPEServer/NRPEServer.h
r81e420c r9bd40e2 21 21 22 22 #include <socket_helpers.hpp> 23 #include <nrpe/server/server.hpp> 23 #include <nrpe/server/protocol.hpp> 24 #include "handler_impl.hpp" 24 25 25 26 NSC_WRAPPERS_MAIN(); 26 27 27 class NRPEListener : public nscapi::impl::simple_plugin { 28 private: 29 typedef enum { 30 inject, script, script_dir, 31 } command_type; 32 struct command_data { 33 command_data() : type(inject) {} 34 command_data(command_type type_, std::wstring arguments_) : type(type_), arguments(arguments_) {} 35 command_type type; 36 std::wstring arguments; 37 }; 38 39 nrpe::server::server::connection_info info_; 40 28 class NRPEServer : public nscapi::impl::simple_plugin { 41 29 public: 42 NRPE Listener();43 virtual ~NRPE Listener();30 NRPEServer(); 31 virtual ~NRPEServer(); 44 32 // Module calls 45 33 bool loadModule(); … … 67 55 NSCAPI::nagiosReturn handleCommand(const strEx::blindstr command, const unsigned int argLen, wchar_t **char_args, std::wstring &message, std::wstring &perf); 68 56 std::wstring getConfigurationMeta(); 57 58 private: 59 socket_helpers::connection_info info_; 69 60 boost::shared_ptr<nrpe::server::server> server_; 61 boost::shared_ptr<handler_impl> handler_; 70 62 71 private: 63 72 64 class NRPEException { 73 65 std::wstring error_;
Note: See TracChangeset
for help on using the changeset viewer.








