🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How can I transfer the content of a list

#712
From: Bashar Termanini
Date: Sat, 17 Nov 2007 07:15
14 lines
1690 bytes
> Since TIdTCPServer is a threaded component, you will have to Synchronize 
> with the main thread (such as with the TIdSync class) in order to safely 
> access the ListBox.  Copy its contents into a TStringList and then send it 
> to the client.
>
> On the client side, if you are running TIdTCPClient in the main thread, 
> then you can read the inbound data directly into the ListBox.Items 
> property. Otherwise, read the data into a TStringList and then Synchronize 
> with the main thread in order to update the ListBox.
>
>
> Gambit
Please show me a simple code how to send a TStringList from TIdTCPServer to
the client.
Technical Details
Message-ID: <473e9511@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <473b5fb5@newsgroups.borland.com> <473b7069$1@newsgroups.borland.com> <473cbd6a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,3d483e6389458d8d
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Bashar Termanini" <bashar-t@scs-net.org>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <473b5fb5@newsgroups.borland.com> <473b7069$1@newsgroups.borland.com> <473cbd6a@newsgroups.borland.com>
Subject: Re: How can I transfer the content of a list 
Date: Sat, 17 Nov 2007 09:15:30 +0200
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 88.86.13.165
Message-ID: <473e9511@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1195283729 88.86.13.165 (16 Nov 2007 23:15:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail