00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef OPTSTATUSCODE_H
00018 #define OPTSTATUSCODE_H
00019
00020 #include <string>
00021 #include "Opt.h"
00022 #include "DHCPConst.h"
00023
00024 class TOptStatusCode : public TOpt
00025 {
00026 public:
00027 TOptStatusCode( char * &buf, int &len, TMsg* parent);
00028 TOptStatusCode(int status,string Message, TMsg* parent);
00029
00030 int getSize();
00031 char * storeSelf( char* buf);
00032
00033 int getCode();
00034 string getText();
00035
00036 bool doDuties();
00037 private:
00038 string Message;
00039 int StatusCode;
00040 bool Valid;
00041 };
00042
00043 #endif
00044