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.
Header
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)