UDPFlush Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
UDPFlush Function
C
void UDPFlush();
Description

This function builds a UDP packet with the pending TX data and marks it for transmission over the network interface. Since UDP is a frame-based protocol, this function must be called before returning to the main stack loop whenever any data is written.

Preconditions

UDPIsPutReady() was previously called to specify the current socket, and data has been written to the socket using the UDPPut family of functions.

Returns

None

Remarks

Note that unlike TCPFlush, UDPFlush must be called before returning to the main stack loop. There is no auto transmit for UDP segments.

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