source: nscp/modules/NSClientServer/NSClientServer.h @ f881d47

0.4.00.4.10.4.2
Last change on this file since f881d47 was b8c44b4, checked in by Michael Medin <michael@…>, 22 months ago

more invalid folders fixed... git git git!!! :(

  • Property mode set to 100644
File size: 2.5 KB
Line 
1/**************************************************************************
2*   Copyright (C) 2004-2007 by Michael Medin <michael@medin.name>         *
3*                                                                         *
4*   This code is part of NSClient++ - http://trac.nakednuns.org/nscp      *
5*                                                                         *
6*   This program is free software; you can redistribute it and/or modify  *
7*   it under the terms of the GNU General Public License as published by  *
8*   the Free Software Foundation; either version 2 of the License, or     *
9*   (at your option) any later version.                                   *
10*                                                                         *
11*   This program is distributed in the hope that it will be useful,       *
12*   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
13*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
14*   GNU General Public License for more details.                          *
15*                                                                         *
16*   You should have received a copy of the GNU General Public License     *
17*   along with this program; if not, write to the                         *
18*   Free Software Foundation, Inc.,                                       *
19*   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
20***************************************************************************/
21//#include <Socket.h>
22#include <socket_helpers.hpp>
23#include <check_nt/server/server.hpp>
24
25NSC_WRAPPERS_MAIN();
26
27class NSClientListener : public nscapi::impl::simple_plugin {
28private:
29
30        socketHelpers::allowedHosts allowedHosts;
31        check_nt::server::server::connection_info info_;
32        boost::shared_ptr<check_nt::server::server> server_;
33
34public:
35        NSClientListener();
36        virtual ~NSClientListener();
37        // Module calls
38        bool loadModuleEx(std::wstring alias, NSCAPI::moduleLoadMode mode);
39        bool loadModule();
40        bool unloadModule();
41
42
43        std::wstring getModuleName() {
44                return _T("NSClient server");
45        }
46        nscapi::plugin_wrapper::module_version getModuleVersion() {
47                nscapi::plugin_wrapper::module_version version = {0, 0, 1 };
48                return version;
49        }
50        std::wstring getModuleDescription() {
51                return _T("A simple server that listens for incoming NSClient (check_nt) connection and handles them.\nAlthough NRPE is the preferred method NSClient is fully supported and can be used for simplicity or for compatibility.");
52        }
53};
Note: See TracBrowser for help on using the repository browser.