/* ==================================================================== * ÆÄ ÀÏ : logSender.h * ¸ñ Àû : * ÀÛ ¼º ÀÚ : °ûöÁß * ÀÛ ¼º ÀÏ : 07/02/13 * ÁÖÀÇ»çÇ× : * =================================================================== */ #ifndef __LOG_SENDER_H__ #define __LOG_SENDER_H__ //#ifndef WINVER //#define WINVER 0x0500 //#endif // //#ifndef _WIN32_WINNT //#define _WIN32_WINNT 0x0500 //#endif #pragma once #include "iocpudpsend.h" #include "packet.h" #include "logprotocol.h" class cLogSender : public cIocpUdpSend { public: // Ŭ·¡½º »ý¼º ¹× °ø¿ë ¸Þ¼Òµå. cLogSender(void); bool Initialize ( char* ipAddr="", unsigned short port=14700, unsigned short numWorkerThreads=2 ); void Shutdown ( DWORD maxWait=INFINITE ); MSGBUF* GetPacket ( void** handle, char protocol ); bool SendPacket ( void* handle, unsigned long length ); bool PostServerEvent ( char* message ); bool PostMemberEvent ( char type, char category, long memberIdx, char* message ); bool PostConcurrentEvent ( long serverIdx, long minimum, long maximum, char* message ); public: // Ŭ·¡½º ÆÄ±« ¸Þ¼Òµå. virtual ~cLogSender(void); }; #endif // __LOG_SENDER_H__