Article View: borland.public.cppbuilder.internet.socket
Article #1850Re: Slow ACK'ing
From: Josh Arnold
Date: Wed, 11 Oct 2006 17:14
Date: Wed, 11 Oct 2006 17:14
45 lines
2223 bytes
2223 bytes
Also, How do I get back a SOCKET type from the TTcpClient socket I am using in my app? Is this possible, everything I have tried so far does not work. Tried SOCKET s = client->Socket->SocketHandle; Thanks, Josh "Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com... > Josh Arnold wrote: > > >My new problem is that when ACK'ing back to the server after receiving the > >data, the ACK is taking around 200ms. Completely unacceptable for the > >application and I'm obviously doing something wrong. > > I'll repost my repost from 1/17/2006 > > > See my message from 5/4/2005 > 50th71db9qmpnog2gldkeqvsfv112h3ano@4ax.com > > Subject: Re: sendto to same destination more times after eachother > fails.? > > TCP buffers data so the data-to-packetheader ratio is sane. When > sending a single integer, the packet is several times the size of the > data, quite wastefull, so by default, TCP holds onto the data for a > period of time, hoping more data will be sent. > If you don't want to wait for the timeout, you need to tell TCP not to > wait. > > Look into this WinSock API command, and parameters.. > > setsockopt(ClientOutSocket,IPPROTO_TCP,TCP_NODELAY,(char*)&t,sizeof(t)); > > >
Technical Details
Message-ID:
<452d24b3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.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:
<452cea31$1@newsgroups.borland.com> <0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.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: "Josh Arnold" <jarnold@atterotech.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <452cea31$1@newsgroups.borland.com> <0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com> Subject: Re: Slow ACK'ing Date: Wed, 11 Oct 2006 13:14:50 -0400 Lines: 47 Organization: AtteroTech X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 70.89.2.105 Message-ID: <452d24b3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1160586419 70.89.2.105 (11 Oct 2006 10:06:59 -0700) Path: arc1-ca.pugleaf.net!g2news2.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