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.