Article View: borland.public.cppbuilder.internet.socket
Article #2375Re: UseNagle with ClientSocket on BC++6.0
From: Remy Lebeau (TeamB)
Date: Tue, 30 May 2006 16:41
Date: Tue, 30 May 2006 16:41
25 lines
1617 bytes
1617 bytes
"didier" <jehanno@lal.in2p3.fr> wrote in message
news:447c6145$1@newsgroups.borland.com...
> How do I access and set the UseNagle option to [false] for
> the associated socket ?
You have to use the setsockopt() function from the WinSock API directly.
For example:
void __fastcall TForm1::ClientSocket1Connect(TObject *Sender,
TCustomWinSocket *Socket)
{
BOOL disabled = TRUE;
setsockopt((SOCKET)Socket->SocketHandle, IPPROTO_TCP, TCP_NODELAY,
(char*)&disabled, sizeof(BOOL));
}
> On Visual C++ 2005, there is a function called setsockopt() which does
this stuff.
That is an API function. It is available to Borland compilers as well.
Gambit
Technical Details
Message-ID:
<447c764e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<447c6145$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6da034bd1b1daccb X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <447c6145$1@newsgroups.borland.com> Subject: Re: UseNagle with ClientSocket on BC++6.0 Date: Tue, 30 May 2006 09:41:24 -0700 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <447c764e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1149007438 68.69.17.41 (30 May 2006 09:43:58 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail