00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef DHCPSERVER_H
00021 #define DHCPSERVER_H
00022
00023 #include <iostream>
00024 #include <string>
00025 #include "RelCommon.h"
00026
00027 using namespace std;
00028
00029 class TDHCPRelay
00030 {
00031 public:
00032 TDHCPRelay(string config);
00033 void run();
00034 void stop();
00035 bool isDone();
00036 bool checkPrivileges();
00037 void setWorkdir(std::string workdir);
00038 ~TDHCPRelay();
00039
00040 private:
00041 bool IsDone;
00042 TCtx Ctx;
00043 };
00044
00045 #endif
00046