]> git.ipfire.org Git - thirdparty/pdns.git/blame - pdns/pdnsservice.hh
add OpenSSL exception to PowerDNS, Netherlabs, van Dijk and Hubert copyrights
[thirdparty/pdns.git] / pdns / pdnsservice.hh
CommitLineData
6ab98b0a
BH
1/*
2 PowerDNS Versatile Database Driven Nameserver
3 Copyright (C) 2002 PowerDNS.COM BV
4
5 This program is free software; you can redistribute it and/or modify
22dc646a
BH
6 it under the terms of the GNU General Public License version 2
7 as published by the Free Software Foundation
f782fe38
MH
8
9 Additionally, the license of this program contains a special
10 exception which allows to distribute the program in binary form when
11 it is linked against OpenSSL.
6ab98b0a
BH
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
06bd9ccf 20 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
6ab98b0a 21*/
092f210a
BH
22
23#ifndef AHUDNSSERVICE_HH
24#define AHUDNSSERVICE_HH
25
26#include <string>
27#include "ntservice.hh"
28
29class PDNSService : public NTService
30{
31protected:
32 //! Main service procedure.
33 int main( int argc, char *argv[] );
34
35 //! Control handler.
36 void ctrlHandler( DWORD controlCode );
37
38public:
39 //! Constructor.
40 PDNSService( void ) : NTService()
41 {
42 }
43
44 //! Returns the service name.
45 std::string getServiceName( void );
46
47};
48
49#endif // AHUDNSSERVICE_HH