|Hint: Use the tree menu to navigate groups of related pages|
Receiving UDP Data (zero copy interface)
TCP/IP stack API function is used to receive from a UDP socket.
Data can only be received after the
socket has been
created, configured, and
bound to a local port number.
Part of the FreeRTOS+TCP Networking Tutorial
As detailed on the FreeRTOS_recvfrom() API reference page, FreeRTOS_recvfrom() can be used with standard calling semantics, or zero copy calling semantics. This page demonstrates the zero copy calling semantics.
The source code below shows a RTOS task that creates a socket before entering a loop that receives data using the zero copy calling semantics. The comments in the source code provide important information on how to use network buffers when the zero copy option is used.