Help CenterHelp 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
Vous avez cliqué sur un lien qui correspond à cette commande MATLAB :
Pour exécuter la commande, saisissez-la dans la fenêtre de commande de MATLAB. Les navigateurs web ne supportent pas les commandes MATLAB.
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office