AceT_Decoder_Plugin_Init_Proc

摘要

回调:用于初始化自定义解码器插件。

语法

<decoder_name>_ace_decoder_init (plugin_ptr)
参数 类型 说明
plugin_ptr AceT_Decoder_Plugin * 需要填写的数据结构,用于存放该自定义解码器所使用的列表与回调。

返回类型

int

状态(1 表示成功,0 表示失败)。

头文件

ace_client_api.h

示例

int
op_http_ace_decoder_init (AceT_Decoder_Plugin * plugin_ptr)
	{
	/* PURPOSE: To setup the callbacks and information about the decoder */
	/*  in advance.                                                      */
	/* RETURNS: Success or Failure, 1 or 0                               */
	FIN (op_http_ace_decoder_init);

	plugin_ptr->decode_proc = (AceT_Decoder_Decode_Proc) op_http_decoder_decode;
	plugin_ptr->details_proc = (AceT_Decoder_Details_Proc) op_http_decoder_details;

	plugin_ptr->protocols_lptr = prg_list_create ();
	prg_list_strings_append (plugin_ptr->protocols_lptr, "HTTP", VOSC_NIL);
	FRET (1);
	}

详情

Riverbed 分析软件在初始化 Transaction Analyzer 期间调用该函数。该回调负责为自定义解码器填写 AceT_Decoder_Plugin 数据结构,只需填写解码器所需的字段。

该回调必须命名为 <decoder_name>_ace_decoder_init,其中 <decoder_name> 与定义该回调的文件名一致(即 <decoder_name>.ets.c)。

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com