🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16081

Re: WSA????

#16081
From: Hans Galema
Date: Tue, 03 Jun 2003 10:57
17 lines
1714 bytes
Tharun Pillay wrote:
> TServerSocket->Socket->Send in a blocking server would (as I understand
> things) return only once its completly sent all data - how then, in a
> non-blocking server, do I know when the TServerSocket->Socket->Send has sent
> all the bytes queued? 

There is no TServerSocket->Socket->Send() but there is
TServerSocket->Socket->Connections[connectionnr]->SendBuf() or ..->SendText().

> Reason being, I need to close the socket from the
> server side when all data has finished sending.

Using ..->SendBuf() if it does not return -1 you can close the TServerSocket
right away I would think. This will close all other connections too. Are there
more connections ?

Hans.
Technical Details
Message-ID: <3edc7f28@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3edc7a5c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,30c81141f30ce678
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-03 04:02:37 PST
Date: Tue, 03 Jun 2003 12:57:59 +0200
From: Hans Galema <j.m.galema.dontusethis@maartens.nl>
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.3.1) Gecko/20030425
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: WSA????
References: <3edc7a5c@newsgroups.borland.com>
In-Reply-To: <3edc7a5c@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.108.11
Message-ID: <3edc7f28@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054637864 129.125.108.11 (3 Jun 2003 03:57:44 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail