Clear UDP socket buffers
flush(u)
flush(u,"input")
flush(u,"output")
example
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.
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