AceT_Decoder_Plugin_Init_Proc

Abstract

Callback: Used to initialize a custom decoder plug-in.

Syntax

<decoder_name>_ace_decoder_init (plugin_ptr)
Argument Type Description
plugin_ptr AceT_Decoder_Plugin * Data structure to be filled in with the lists and callbacks used by this custom decoder.

Return Type

int

Status (1 for success, 0 for failure).

ace_client_api.h

Example

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);
	}

Details

Riverbed analysis software calls this function during initialization of Transaction Analyzer. This callback is responsible for filling in the AceT_Decoder_Plugin data structure for the custom decoder. Only the fields needed by the decoder must be filled.

This callback must be named <decoder_name>_ace_decoder_init, where <decoder_name> matches the name of the file in which the callback is defined (that is, <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