Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Turning Nagle off (here's how I do it)

26 views
Skip to first unread message

Bob Whitaker

unread,
Sep 14, 2000, 3:00:00 AM9/14/00
to
I had a need to have Nagle turned off; I did the following...


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


0 new messages