Ace_Packet_Raw_Binary_Get()

Abstract

Gets the raw information from a packet in binary form.

Syntax

Ace_Packet_Raw_Binary_Get (pk_ptr, packet_offset, binary_buffer, current_buffer_size)
Argument Type Description
pk_ptr AceT_Packet * Packet of interest.
packet_offset int Location within the packet at which to begin reading binary information.
binary_buffer unsigned char ** Buffer to hold the binary information.
current_buffer_size int Size of binary_buffer.

Return Type

int

Number of bytes read.

ace_client_api.h

Example

/* Keep track of a static pointer to the recorded data so we can reuse it. */
rec_data_size = Ace_Packet_Raw_Binary_Get (pk_ptr, 0, &rec_data_arr,
	rec_data_arr_size);
if (rec_data_size > rec_data_arr_size)
	rec_data_arr_size = rec_data_size;

Details

This function will allocate additional space for binary_buffer if the current_buffer_size is not large enough.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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