FindMatchingSocket Function

From Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
FindMatchingSocket Function
C
static UDP_SOCKET FindMatchingSocket(
    UDP_HEADER * h, 
    NODE_INFO * remoteNode, 
    IP_ADDR * localIP
);
Description

This function attempts to match an incoming UDP segment to a currently active socket for processing.

Preconditions

UDP segment header and IP header have both been retrieved.

Parameters
Parameters 
Description 
h 
The UDP header that was received. 
remoteNode 
IP and MAC of the remote node that sent this segment. 
localIP 
IP address that this segment was destined for. 
Returns

A UDP_SOCKET handle of a matching socket, or INVALID_UDP_SOCKET when no match could be made.

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