Help Center
Clear UDP socket buffers
Since R2020b
flush(u)
flush(u,"input")
flush(u,"output")
flush(u) flushes all data from both the input and output buffers of the specified UDP socket.
u
flush(u,"input") flushes only the input buffer.
flush(u,"output") flushes only the output buffer.
example
collapse all
Create a udpport object, and clear its buffer.
udpport
Clear only the input buffer.
u = udpport; % ⋮ flush(u,"input")
Clear both the input and output buffers.
UDP socket, specified as a udpport object.
Example: u = udpport
u = udpport
Data Types: udpport object
udpport object
Introduced in R2020b
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office