X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/f48b5b729bb0a1bdf88c1eebdb7e754c4d6bac92..76addde818f6fdc09ff8ff264eafeab7d4c1af8e:/projects/sgauth/web.h diff --git a/projects/sgauth/web.h b/projects/sgauth/web.h index a4dfcb48..a933230a 100644 --- a/projects/sgauth/web.h +++ b/projects/sgauth/web.h @@ -39,17 +39,15 @@ #include #include -#include "stg/stg_const.h" +#include "stg/const.h" #include "stg/ia_packets.h" -using namespace std; - #define MAX_MESSAGES (10) //----------------------------------------------------------------------------- struct STG_MESSAGE { -string msg; -string recvTime; +std::string msg; +std::string recvTime; int type; }; //----------------------------------------------------------------------------- @@ -58,10 +56,10 @@ class WEB public: WEB(); void Run(); - void SetDirName(const string & dn, int n); + void SetDirName(const std::string & dn, int n); void SetRefreshPagePeriod(int p); void SetListenAddr(uint32_t ip); - void AddMessage(const string & message, int type); + void AddMessage(const std::string & message, int type); void UpdateStat(const LOADSTAT & ls); void Start(); private: @@ -76,7 +74,7 @@ private: pthread_t thread; #endif - string dirName[DIR_NUM]; + std::string dirName[DIR_NUM]; int res; int listenSocket; int outerSocket; @@ -85,6 +83,6 @@ private: uint32_t listenWebAddr; LOADSTAT ls; - list messages; + std::list messages; }; //-----------------------------------------------------------------------------