void FreeRTOS_ReleaseUDPPayloadBuffer( void *pvBuffer );
FreeRTOS_ReleaseUDPPayloadBuffer() is used to return to the TCP/IP stack a buffer that was used with the zero copy interface.
The zero copy interface for transmitting data is described on the FreeRTOS_sendto() documentation page.
The zero copy interface for receiving data is described on the FreeRTOS_recvfrom() documentation page.
A buffer needs to be returned to the stack if:
Parameters:
| pvBuffer |
The buffer that is being returned to the TCP/IP stack.
|
Example usage:
The FreeRTOS_sendto() documentation page includes an example zero copy send operation that demonstrates how to use FreeRTOS_ReleaseUDPPayloadBuffer() when the send operation fails.
the FreeRTOS_recvfrom() documentation page includes an example that demonstrates how to use FreeRTOS_ReleaseUDPPayloadBuffer() to release a buffer obtained from a call to FreeRTOS_recvfrom().