Clone of UAS2 @ https://github.com/drudgedance/uas2

Status.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * This file is part of UAS2.
  3. *
  4. * UAS2 is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * UAS2 is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. * You should have received a copy of the GNU General Public License
  14. * along with UASv1; if not, write to the Free Software
  15. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. */
  17. /**
  18. * @file Status.h
  19. */
  20. #if !defined(AFX_STATUS_H__28A3DF38_A042_4F48_8966_9973B6803166__INCLUDED_)
  21. #define AFX_STATUS_H__28A3DF38_A042_4F48_8966_9973B6803166__INCLUDED_
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. #include "uas.h"
  26. class CStatus
  27. {
  28. public:
  29. bool fPrivate;
  30. static void SendHTTP(char* strOutput);
  31. static void ServerOffline( );
  32. static void ServerShutdown( );
  33. static void ServerStart( );
  34. static void ServerLoad( );
  35. static void UpDate( );
  36. static void Clear( );
  37. static DWORD m_dwMax;
  38. CStatus();
  39. virtual ~CStatus();
  40. static char m_strHost[16];
  41. static char m_strHTTP[500];
  42. static char m_strOutput[500];
  43. static char m_strSend[1024];
  44. static int m_fPrivate;
  45. static char m_mText[51];
  46. static DWORD m_sTTE;
  47. static DWORD m_cAvg;
  48. static char m_cVersion[10];
  49. static char m_cVer[31];
  50. static int m_sPort;
  51. static char m_sKey[7];
  52. static char m_sSer[31];
  53. static DWORD m_sID;
  54. static byte m_nStat;
  55. static SOCKET m_Socket;
  56. static WSADATA m_wsaData;
  57. static SOCKET m_SendSocket;
  58. //
  59. static byte m_bServer[4];
  60. static int m_ServerPort;
  61. static unsigned long m_ulLastUpdate;
  62. };
  63. #endif // !defined(AFX_STATUS_H__28A3DF38_A042_4F48_8966_9973B6803166__INCLUDED_)