//#ifdef _PAAS_ALERT // //#ifndef ALERT_REQUEST_SENDER_H //#define ALERT_REQUEST_SENDER_H // //#include //#include //#include //#include // //#define DEFAULT_APP_NAME "AuthServer" // Send AlertÀ» ½ÇÇàÇÏ´Â ÀÀ¿ë ÇÁ·Î±×·¥ÀÇ À̸§ //#define MAX_ACCOUNT 20 //#define MAX_IP 16 //#define MAX_PARTITION 10 //#define MAX_URL 128 //#define MAX_URL_PATH 1024 // //struct AlertInfo //{ // char szAccount[MAX_ACCOUNT]; // char szClientIP[MAX_IP]; // DWORD dwLoginTickCount; // DWORD dwRetryTickCount; // SYSTEMTIME LoginTime; // // AlertInfo() // { // Reset(); // } // void Reset() // { // memset(this, 0, sizeof(*this)); // } // //}; // //class CAlertRequestSender : public Singleton //{ // typedef std::list ALERTLIST; // // ALERTLIST m_Pool; // ALERTLIST m_AlertList; // // char m_szPart[MAX_PARTITION]; // ÆÄƼ¼Ç Á¤º¸ // char m_szURL[MAX_URL]; // Alert ¸®½ºÆ®¸¦ Àü¼ÛÇÒ URL // char m_szURLPath[MAX_URL_PATH]; // URLÀÇ °æ·Î // // HINTERNET m_hOpen, // ÀÎÅÍ³Ý ÃʱâÈ­ ÇÚµé // m_hConnect, // ÀÎÅÍ³Ý HTTP ¼¼¼Ç ÇÚµé // m_hRequest; // HTTP ¼­¹ö¿¡ Request ¿äûÇÒ ÇÚµé // // HANDLE m_eventKill; // HANDLE m_hThread; // //public: // CAlertRequestSender(); // ~CAlertRequestSender(); // // void Create( const char * pDescFileName ); // bool SendAlert(char* pAccount, char* pClientIP, SYSTEMTIME* pLoginTime, bool bRetry = false); // // static unsigned int __stdcall Runner(void* lParam); // //private: // // bool Open(); // bool Connect(); // void Clear(); // bool InsertAlertInfo(char* pAccount, char* pClientIP, SYSTEMTIME* pLoginTime); //}; // // // //#endif // ALERT_REQUEST_SENDER_H // //#endif // _PAAS_ALERT //