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 |
h |
The TCP header for this packet |
len |
The total buffer length of this segment |
Returns
None