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 |