#include <string>
#include <list>
-#include "stg_const.h"
-#include "ia_packets.h"
+#include "stg/stg_const.h"
+#include "stg/ia_packets.h"
using namespace std;
void UpdateStat(const LOADSTAT & ls);
void Start();
private:
-
void PrepareNet();
+ int SendReply();
+ int SendCSS();
+ int Redirect(const char * url);
#ifdef WIN32
WSADATA wsaData;
pthread_t thread;
#endif
- int SendReply();
- int SendCSS();
- int Redirect(const char * url);
-
- string dirName[DIR_NUM];
- int res;
- int listenSocket;
- int outerSocket;
- struct sockaddr_in listenAddr;
- struct sockaddr_in outerAddr;
- int refreshPeriod;
+ string dirName[DIR_NUM];
+ int res;
+ int listenSocket;
+ int outerSocket;
+ int refreshPeriod;
- uint32_t listenWebAddr;
- LOADSTAT ls;
+ uint32_t listenWebAddr;
+ LOADSTAT ls;
list<STG_MESSAGE> messages;
-
- #ifndef WIN32
- socklen_t outerAddrLen;
- #else
- int outerAddrLen;
- #endif
};
//-----------------------------------------------------------------------------
-