HandleTCPSeg Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
HandleTCPSeg Function
C
static void HandleTCPSeg(
    TCP_HEADER* h, 
    WORD len
);
Description

Once an incoming segment has been matched to a socket, this function performs the necessary processing with the data. Depending on the segment and the state, this may include copying data to the TCP buffer, re-assembling out-of order packets, continuing an initialization or closing handshake, or closing the socket altogether.

Preconditions

TCP is initialized and the current TCP stub is already synced.

Parameters
Parameters 
Description 
The TCP header for this packet 
len 
The total buffer length of this segment 
Returns

None

Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.