🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

TIdTCPServer, writing to all clients (Indy + BCB6)

#2548
From: Boris Epel
Date: Sat, 25 Mar 2006 09:37
16 lines
1581 bytes
Hello All,
I have to control the device remotely. Multiple clients are connected to 
server, which interacts with device directly. Clients request 
information from device on demand. Device executes timely procedures and 
afterwards reports status.

Therefore server has to be able to send messages to all clients. I did 
not realize how to do it using TIdTCPServer component (how to access 
Connection from outside of the threads).

Connected question: is it legal(clever in my case) to use server threads 
only for reading from the socket and to perform writing in other thread 
(which will process requests)?

Boris
PS Thanks for previous replies!
Technical Details
Message-ID: <44250f70$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,34e362c244f8763d,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 25 Mar 2006 10:37:53 +0100
From: Boris Epel <boep777@yahoo.com>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TIdTCPServer, writing to all clients (Indy + BCB6)
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 212.144.43.67
Message-ID: <44250f70$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1143279472 212.144.43.67 (25 Mar 2006 01:37:52 -0700)
Lines: 16
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail