回调定义
基于这些回调定义编写函数时,必须在返回类型前加上 DLLEXPORT。例如:
DLLEXPORT AceT_Decode_Status
op_tcp_decoder_decode (void * state_ptr, AceT_Packet * pk_ptr, int protocol,
int layer, int offset, int * next_protocol_offset, int * next_protocol_id);
ACE Decode 包定义了以下回调类型。