Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Aug : Re: How to disable nagle in TIdTPCClient and TIdTCPServer
| Subject: | Re: How to disable nagle in TIdTPCClient and TIdTCPServer |
| Posted by: | "theo" (nospam@for.me) |
| Date: | Tue, 22 Aug 2006 14:51:17 |
Luca Bottani schrieb:
>
> I saw the UseNagle property , but I am really new to
> the Indy Library, so a few lines of code would be very appreciate:
>
If you're new to socket-programming, I would try other things first
before fiddling around with the nagle algorithm.
I don't know Indy well. With Synapse I do it like this procedure (but
almost never):
procedure DisableNagle(SockId: integer);
var opt: Integer;
begin
opt := integer(true);
setsockopt(SockID, IPPROTO_TCP, TCP_NODELAY, PChar(@opt), sizeof(opt));
end;
none