00001 #ifndef _HLBR_ACTION_ALERT_LISTENSOCKET_H_ 00002 #define _HLBR_ACTION_ALERT_LISTENSOCKET_H_ 00003 00004 #include "../config.h" 00005 #include "../engine/hlbr.h" 00006 #include "action.h" 00007 00008 #define PREMAGIC 0x11223344 00009 00010 #define LDATA_TYPE_STATISTICS 1 00011 #define LDATA_TYPE_ALERT 2 00012 00013 typedef struct listen_data_record{ 00014 unsigned int PreMagic; 00015 unsigned char Type; 00016 unsigned short Len; 00017 } DRec; 00018 00019 typedef struct listen_data_record_stats{ 00020 unsigned int PreMagic; 00021 unsigned char Type; 00022 unsigned short Len; 00023 00024 int Time; 00025 unsigned short PacketCount; 00026 unsigned short TCPCount; 00027 unsigned short UDPCount; 00028 } DRecStat; 00029 00030 typedef struct listen_data_record_alert{ 00031 unsigned int PreMagic; 00032 unsigned char Type; 00033 unsigned short Len; 00034 00035 unsigned char Message[1024]; 00036 } DRecAlert; 00037 00038 00039 int InitActionAlertListenSocket(); 00040 00041 #endif