TsgcTCPClient › Properties › UseNagle

UseNagle Property

Enables or disables Nagle's algorithm (TCP_NODELAY) on the client socket.

Syntax

property UseNagle: Boolean read FUseNagle write FUseNagle stored True;

Default Value

True

Remarks

Leave UseNagle at the default True to keep Nagle's algorithm enabled, which buffers small outgoing packets and coalesces them into fewer segments to reduce header overhead. Set it to False (TCP_NODELAY) when the protocol requires low-latency delivery of small messages and each call to WriteData must hit the wire immediately. Applied when the TCP client socket is created.

Example


oTCP := TsgcTCPClient.Create(nil);
oTCP.Host := 'www.esegece.com';
oTCP.Port := 2053;
oTCP.UseNagle := false;
oTCP.Active := true;

Back to Properties