PDA

View Full Version : Disable nagle algorithm



Gadget
04-02-2004, 02:20 PM
Anyone know how to disable this in Delphi?

I am using TidTCPServer & Client, I assume they descend from TCustomWinSocket, which is a wrapper for WinSock, at API level I think the function is setsockopt, but I have no idea how to do this? It should be a case of simply setting TCP_NODELAY flag.

ggs
08-02-2004, 04:12 PM
With Indy v9 (some version of v9 anyway)


TIdIOHandlerSocket.UseNagle :lol:

Otherwise it somewere on the TidTCPSever class in earlier versions.