🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1853

Re: Slow ACK'ing

#1853
From: Josh Arnold
Date: Wed, 11 Oct 2006 22:38
33 lines
2218 bytes
OK,

I have tried the exact code posted already.  (I goofed an forgot that I am 
using TClientSocket and not TTcpClient).

However, if you actually look at the return value of setsockopt.  The code 
from the last post returns a -1 when I run it. It should be zero if 
everything is OK.
-Josh


"Lesley Anne" <mspfila-ng@yahoo.com> wrote in message 
news:452d5df9@newsgroups.borland.com...
> Bob Gonder wrote
>>
>> From: "Remy Lebeau \(TeamB\)"
>> Newsgroups: borland.public.cppbuilder.internet.socket
>> Subject: Re: TServerSocket sends a unwanted acknowlege
>> Date: Wed, 21 Sep 2005 09:52:31 -0700
>> Message-ID: <43318fa3@newsgroups.borland.com>
>>
>
>> You need to use its SocketHandle property instead:
>>
>>    setsockopt((SOCKET)Socket->SocketHandle, IPPROTO_TCP, TCP_NODELAY,
>> &fl, sizeof(fl));
>
> That example was for a TServerSocket, and my example earlier was with a
> TClientSocket.  I would assume that with a TTcpClient the equivalent
> would probably be TcpClient1->Handle, but I haven't worked with that
> component before, so I'm not positive.
>
> 
Technical Details
Message-ID: <452d726d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <452cea31$1@newsgroups.borland.com> <0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com> <452d24b3$1@newsgroups.borland.com> <92mqi2ho9q2ighfk0aegstmoshu4n7rpv6@4ax.com> <452d5df9@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
Reply-To: "Josh Arnold" <jdaudio02@hotmail.com>
From: "Josh Arnold" <jdaudio02@hotmail.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <452cea31$1@newsgroups.borland.com> <0hvpi29knbm09uif8ncifnmcuihfr6ttsa@4ax.com> <452d24b3$1@newsgroups.borland.com> <92mqi2ho9q2ighfk0aegstmoshu4n7rpv6@4ax.com> <452d5df9@newsgroups.borland.com>
Subject: Re: Slow ACK'ing
Date: Wed, 11 Oct 2006 18:38:30 -0400
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
NNTP-Posting-Host: 71.127.79.90
Message-ID: <452d726d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1160606317 71.127.79.90 (11 Oct 2006 15:38:37 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!logbridge.uoregon.edu!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail