I have a Delphi app using TServerSocket, the following is in the component's
OnAccept event...
if (SetSockOpt(Socket.SocketHandle,IPPROTO_TCP,TCP_NODELAY,'1111',4) <> 0)
then ShowMessage('Turning Nagle off failed');
I have a C++Builder app using TClientSocket, the following is in the component's
OnConnect event...
if (setsockopt(Socket->SocketHandle,IPPROTO_TCP, TCP_NODELAY,"1111",4) != 0) {
ShowMessage("Error turning Nagle off: "+IntToStr(WSAGetLastError()));
}
I connot recall where I got the info on the 1111 string.
Bob
George Elton wrote:
> Anybody know how to turn Nagle off?
>
> Ive heard of Winshoes and Indy, but what are they and where can i learn more
> about them?
>
> Thanks in advance
>
> George Elton
> Mycroft Systems
> http://www.mycroft.co.uk
> in...@mycroft.co.uk