- Main Page
- Classes
- Files

- File List
- File Members

# E:/uas2/Server/Status.h

Go to the documentation of this file.

    00001 /*
    00002 * This file is part of UAS2.
    00003 *
    00004 * UAS2 is free software; you can redistribute it and/or modify
    00005 * it under the terms of the GNU General Public License as published by
    00006 * the Free Software Foundation; either version 2 of the License, or
    00007 * (at your option) any later version.
    00008 *
    00009 * UAS2 is distributed in the hope that it will be useful,
    00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
    00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00012 * GNU General Public License for more details.
    00013
    00014 * You should have received a copy of the GNU General Public License
    00015 * along with UASv1; if not, write to the Free Software
    00016 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    00017 */
    00018
    00023 #if !defined(AFX_STATUS_H__28A3DF38_A042_4F48_8966_9973B6803166__INCLUDED_)
    00024 #define AFX_STATUS_H__28A3DF38_A042_4F48_8966_9973B6803166__INCLUDED_
    00025
    00026 #if _MSC_VER > 1000
    00027 #pragma once
    00028 #endif // _MSC_VER > 1000
    00029 #include "uas.h"
    00030
    00031 class CStatus
    00032 {
    00033 public:
    00034         bool fPrivate;
    00035         static void             SendHTTP(char* strOutput);
    00036         static void             ServerOffline( );
    00037         static void             ServerShutdown( );
    00038         static void             ServerStart( );
    00039         static void             ServerLoad( );
    00040         static void             UpDate( );
    00041         static void             Clear( );
    00042         static DWORD    m_dwMax;
    00043         CStatus();
    00044         virtual ~CStatus();
    00045
    00046         static char             m_strHost[16];
    00047         static char             m_strHTTP[500];
    00048         static char             m_strOutput[500];
    00049         static char             m_strSend[1024];
    00050         static int              m_fPrivate;
    00051         static char             m_mText[51];
    00052         static DWORD    m_sTTE;
    00053         static DWORD    m_cAvg;
    00054         static char             m_cVersion[10];
    00055         static char             m_cVer[31];
    00056         static int              m_sPort;
    00057         static char             m_sKey[7];
    00058         static char             m_sSer[31];
    00059         static DWORD    m_sID;
    00060         static byte             m_nStat;
    00061         static SOCKET   m_Socket;
    00062         static WSADATA  m_wsaData;
    00063         static SOCKET   m_SendSocket;
    00064         //
    00065         static byte             m_bServer[4];
    00066         static int              m_ServerPort;
    00067         static unsigned long    m_ulLastUpdate;
    00068 };
    00069
    00070 #endif // !defined(AFX_STATUS_H__28A3DF38_A042_4F48_8966_9973B6803166__INCLUDED_)