🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Code problem

#4799
From: Hans Galema
Date: Thu, 16 Dec 2004 14:52
25 lines
2014 bytes
Maurice wrote:
> In my application I only have a TClientSocket on a form called Form1, I 
> am not sure how to integrate Remy's code into it.

>>> Hello Hans, my application will only require one client at a time. 
>>> Remy pointed out where I was going wrong but I still have problems.

But your application is not a server application. So my remark about
a TServerSocket receiving data from many clients (TClientSocket's)
is not needed for you.

You just can put the code that is in the OnRead event for the
TServerSocket in the OnRead event for the TClientSocket.

So put all that is in

void __fastcall TServerForm::ServerSocketClientRead(TObject *Sender,
TCustomWinSocket *Socket)

in

void __fastcall TForm1::ClientSocket1Read(TObject *Sender,
       TCustomWinSocket *Socket)

Hans.
Technical Details
Message-ID: <41c1a13b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41bf1302$1@newsgroups.borland.com> <41c15538$1@newsgroups.borland.com> <41c17007$1@newsgroups.borland.com> <41c179e0$1@newsgroups.borland.com> <41c19ce0@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,29bbb0e4385845fe
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 16 Dec 2004 15:52:16 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Code problem
References: <41bf1302$1@newsgroups.borland.com> <41c15538$1@newsgroups.borland.com> <41c17007$1@newsgroups.borland.com> <41c179e0$1@newsgroups.borland.com> <41c19ce0@newsgroups.borland.com>
In-Reply-To: <41c19ce0@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <41c1a13b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1103208763 129.125.201.248 (16 Dec 2004 06:52:43 -0800)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail