Ace_Fragment_Group_Size_Get()
Abstract
Returns the size of a fragment group.
Syntax
Ace_Fragment_Group_Size_Get (frag_group_ptr)
| Argument | Type | Description |
|---|---|---|
frag_group_ptr |
AceT_Fragment_Group * |
Fragment group of interest. |
Return Type
int
Number of fragments in group, or 0 if the group does not contain a full set of fragments.
Header
ace_client_api.h
Example
tcp_info_ptr->frag_group_ptr = Ace_Decoder_Fragment_Group_Get (pk_ptr, layer-1);
/* Set the payload differently depending on whether we are dealing */
/* with a fragment or not. */
if (tcp_info_ptr->frag_group_ptr)
{
tcp_info_ptr->tcp_payload_len =
Ace_Fragment_Group_Size_Get (tcp_info_ptr->frag_group_ptr);
}