Flush TCP Buffer Using TCP Function

Updated Dec 18, 2023

Reported In


  • LabVIEW

Issue Details

I want to flush the buffer of my TCP communication but there is no function which does this operation.
How can I flush the communication?


You can use the Read TCP function with a great number of bytes to read.

If there are less bytes in the buffer than the number to read, the communication will be flushed.

Additional Information

Make sure to read more characters than there are in your buffer. If not, the buffer won't be flushed by the reading.