Recent

Author Topic: flush  (Read 2439 times)

017hnoor

  • Newbie
  • Posts: 1
flush
« on: April 19, 2015, 06:15:43 pm »
 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.
NOOR

munair

  • Hero Member
  • *****
  • Posts: 798
  • compiler developer @SharpBASIC
    • SharpBASIC
Re: flush
« Reply #1 on: April 20, 2015, 12:04:31 pm »
keep it simple

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11447
  • FPC developer.
Re: flush
« Reply #2 on: April 20, 2015, 01:02:22 pm »
Flush? Do you mean disabling Nagle algoritm? See if you can set socket options and add TCP_NODELAY ?

(don't know lnet details, I use Indy mostly, and it has a usenagle  boolean that can be set to false.)

 

TinyPortal © 2005-2018