How do you flush input and output buffer in lNet TCP component? lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Awesome Programmer · 2015-03-27 18:09 I would like to know if anyone knows how to flush input and/or output buffer for TCP/IP connection using TLTCPComponent. If there is no built in mechanism to do this, what other options are there to do the same. Thanks in advance. ---------------------------------------------------------------------- Never · 2015-03-27 21:41 AFAIK INET is not make use of internal buffers propably you mean the buffer of the OS for this is responsible the OS and all you have to do is to "wait" for a while when you hit its limits this might help [ https://lnet.wordpress.com/usage/sockets-protocols- and-sending/ ] ---------------------------------------------------------------------- Awesome Programmer · 2017-04-28 15:54 Quote from: Never on March 27, 2015, 10:41:48 pmAFAIK INET is not make use of internal buffers propably you mean the buffer of the OS for this is responsible the OS and all you have to do is to "wait" for a while when you hit its limits this might help [ https://lnet.wordpress.com/usage/sockets-protocols- and-sending/ ] So, which means you have to just simple loop reading out what is in the buffer until there is nothing in the buffer to be read. lol... ---------------------------------------------------------------------- Thaddy · 2017-04-28 16:10 Quote from: Awesome Programmer on April 28, 2017, 05:54:43 pmSo, which means you have to just simple loop reading out what is in the buffer until there is nothing in the buffer to be read. lol... Which is called: flush....