source: nscp/include/check_nt/server/handler.hpp @ 9bd40e2

0.4.10.4.2
Last change on this file since 9bd40e2 was 9bd40e2, checked in by Michael Medin <michael@…>, 13 months ago
  • Refactored server internals to be more uniform (This is the first step to adding more protocols like NRDP and unit tests for check_nt)
  • Property mode set to 100644
File size: 835 bytes
RevLine 
[e1d9a58]1#pragma once
2
3#include <check_nt/packet.hpp>
4#include <boost/tuple/tuple.hpp>
5
6namespace check_nt {
7        namespace server {
[9bd40e2]8                class handler : public boost::noncopyable {
[e1d9a58]9                public:
10                        virtual check_nt::packet handle(check_nt::packet packet) = 0;
[9bd40e2]11                        virtual void log_debug(std::string module, std::string file, int line, std::string msg) const = 0;
12                        virtual void log_error(std::string module, std::string file, int line, std::string msg) const = 0;
[e1d9a58]13                        virtual check_nt::packet create_error(std::wstring msg) = 0;
14
15                        virtual void set_allow_arguments(bool) = 0;
16                        virtual void set_allow_nasty_arguments(bool) = 0;
17                        virtual void set_perf_data(bool) = 0;
18
19                        virtual void set_password(std::wstring password) = 0;
20                        virtual std::wstring get_password() const = 0;
21
22                };
23        }// namespace server
24} // namespace check_nt
Note: See TracBrowser for help on using the repository browser.