MCPcopy Create free account
hub / github.com/cppla/ServerStatus / CMain

Class CMain

server/src/main.h:21–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19};
20
21class CMain
22{
23 CConfig m_Config;
24 CServer m_Server;
25
26 struct CClient
27 {
28 bool m_Active;
29 bool m_Disabled;
30 bool m_Connected;
31 int m_ClientNetID;
32 int m_ClientNetType;
33 char m_aUsername[128];
34 char m_aName[128];
35 char m_aType[128];
36 char m_aHost[128];
37 char m_aLocation[128];
38 char m_aPassword[128];
39 int m_aMonthStart; //track month network traffic. by: https://cpp.la
40
41 int64_t m_LastNetworkIN; //restore month traffic info.
42 int64_t m_LastNetworkOUT; //restore month traffic info.
43 int64_t m_TimeConnected;
44 int64_t m_LastUpdate;
45 int64_t m_AlarmLastTime; //record last alarm time.
46
47 struct CStats
48 {
49 bool m_Online4;
50 bool m_Online6;
51 // bool m_IpStatus, delete ip_status check, Duplicate packet loss rate detection
52 // mh361 or mh370, mourn mh370, 2014-03-08 01:20 lost from all over the world. by:https://cpp.la
53 int64_t m_Uptime;
54 double m_Load_1;
55 double m_Load_5;
56 double m_Load_15;
57 double m_ping_10010;
58 double m_ping_189;
59 double m_ping_10086;
60 int64_t m_time_10010;
61 int64_t m_time_189;
62 int64_t m_time_10086;
63 int64_t m_NetworkRx;
64 int64_t m_NetworkTx;
65 int64_t m_NetworkIN;
66 int64_t m_NetworkOUT;
67 int64_t m_MemTotal;
68 int64_t m_MemUsed;
69 int64_t m_SwapTotal;
70 int64_t m_SwapUsed;
71 int64_t m_HDDTotal;
72 int64_t m_HDDUsed;
73 int64_t m_tcpCount;
74 int64_t m_udpCount;
75 int64_t m_processCount;
76 int64_t m_threadCount;
77 int64_t m_IORead;
78 int64_t m_IOWrite;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected