🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TServerSocket sends a unwanted acknowlege

#3469
From: Hans Galema
Date: Wed, 21 Sep 2005 08:17
16 lines
1486 bytes
Billy Holliday wrote:

> How and where to set the TCP_NODELAY option.
> 
> Is the OnClientConnect event the right place?

Do not set it.

Better add a Sleep(500); statement after every message sent
to the client. The socket not only sends when a sufficient amount
of data has been buffered but also when a certain amount of
time has passed.

Note: You can experiment with the parameter for Sleep().

Hans.
Technical Details
Message-ID: <433116ec@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <433101e8@newsgroups.borland.com> <43310420$1@newsgroups.borland.com> <433113a8$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2e35895317a3987d
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 21 Sep 2005 10:17:45 +0200
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TServerSocket sends a unwanted acknowlege
References: <433101e8@newsgroups.borland.com> <43310420$1@newsgroups.borland.com> <433113a8$1@newsgroups.borland.com>
In-Reply-To: <433113a8$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <433116ec@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1127290604 145.98.201.248 (21 Sep 2005 01:16:44 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!ecngs!feeder.ecngs.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail