Article View: borland.public.cppbuilder.internet.socket
Article #1849Re: Slow ACK'ing
From: Lesley Anne
Date: Wed, 11 Oct 2006 16:28
Date: Wed, 11 Oct 2006 16:28
16 lines
1707 bytes
1707 bytes
Josh Arnold wrote:
>
> Thanks! I knew I was missing something. Is t the timeout?
> What should thins be initialized as?
The last two parameters are optval and optlen. IPPROTO_TCP is the option
level, TCP_NODELAY is the option, and then you set what you want to do with
that option. In this case you want to turn the TCP_NODELAY option on, so
you set it to true. The following is what I have:
BOOL enabled = TRUE;
setsockopt((SOCKET)ClientSocket1->Socket->SocketHandle, IPPROTO_TCP,
TCP_NODELAY, (char*)&enabled, sizeof(BOOL));
ClientSocket1->Open();
Technical Details
Message-ID:
<452d1b9e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!out01a.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<452cea31$1@newsgroups.borland.com> <0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com> <452d0c28$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,74648bce769a50c7 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Lesley Anne" <mspfila-ng@yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <452cea31$1@newsgroups.borland.com> <0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com> <452d0c28$1@newsgroups.borland.com> Subject: Re: Slow ACK'ing Date: Wed, 11 Oct 2006 12:28:13 -0400 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 NNTP-Posting-Host: 204.60.2.32 Message-ID: <452d1b9e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1160584094 204.60.2.32 (11 Oct 2006 09:28:14 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!out01a.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail