Ace_TCP_Stream_Packet_Bytes_Remaining_Get()

Abstract

Gets the remaining bytes for a specified packet.

Syntax

Ace_TCP_Stream_Packet_Bytes_Remaining_Get (stream_ptr, pk_ptr)
Argument Type Description
stream_ptr AceT_TCP_Stream * TCP stream of interest.
pk_ptr AceT_Packet * Current packet in the stream.

Return Type

int

See Details.

ace_client_api.h

Example

while (stream_ptr &&
	!(packet_slicing_detected = op_ica_conn_packet_slicing_detected_get (conn_ptr))
	&& (bytes_remaining = Ace_TCP_Stream_Packet_Bytes_Remaining_Get (stream_ptr, pk_ptr)) > 0)
	{
	...
	}

Details

This function returns one of the following values:

  • 0 (if the packet has already been passed in the stream)
  • Remaining number of bytes in the stream (if the packet is the current packet and the stream has only been partially read)
  • Number of payload bytes in the packet (if the packet has not been encountered yet in the stream)

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