TCPProcess Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
TCPProcess Function
C
BOOL TCPProcess(
    NODE_INFO* remote, 
    IP_ADDR* localIP, 
    WORD len
);
Description

This function handles incoming TCP segments. When a segment arrives, it is compared to open sockets using a hash of the remote port and IP. On a match, the data is passed to HandleTCPSeg for further processing.

Preconditions

TCP is initialized and a TCP segment is ready in the MAC buffer.

Parameters
Parameters 
Description 
remote 
Remote NODE_INFO structure 
localIP 
This stack's IP address (for header checking) 
len 
Total length of the waiting TCP segment 
Return Values
Return Values 
Description 
TRUE 
the segment was properly handled. 
FALSE 
otherwise 
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.