source: nscp/modules/NRPEListener/NRPESocket.h @ 1a5449e

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

+ NRPE Support (very basic, no encryption, and nothing fancy)

  • Socket classes rewritten + Added NSCModuleHelper::getSettingsSection to the API
  • Property mode set to 100644
File size: 1.1 KB
Line 
1#pragma once
2#include "resource.h"
3#include <Thread.h>
4#include <Mutex.h>
5#include <WinSock2.h>
6#include <Socket.h>
7#include <string.h>
8/**
9 * @ingroup NSClient++
10 * Socket responder class.
11 * This is a background thread that listens to the socket and executes incoming commands.
12 *
13 * @version 1.0
14 * first version
15 *
16 * @date 02-12-2005
17 *
18 * @author mickem
19 *
20 * @par license
21 * This code is absolutely free to use and modify. The code is provided "as is" with
22 * no expressed or implied warranty. The author accepts no liability if it causes
23 * any damage to your computer, causes your pet to fall ill, increases baldness
24 * or makes your car start emitting strange noises when you start it up.
25 * This code has no bugs, just undocumented features!
26 *
27 * @todo This is not very well written and should probably be reworked.
28 *
29 * @bug
30 *
31 */
32
33
34#define NASTY_METACHARS         "|`&><'\"\\[]{}"        /* This may need to be modified for windows directory seperator */
35
36class NRPESocket : public simpleSocket::Listener {
37private:
38
39public:
40        NRPESocket();
41        virtual ~NRPESocket();
42
43private:
44        virtual void onAccept(simpleSocket::Socket client);
45};
46
47
48
49
Note: See TracBrowser for help on using the repository browser.