🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Send message to all TIdServerSocket connections

#5656
From: Alfred Thomas
Date: Thu, 01 Jul 2004 13:30
13 lines
1211 bytes
Hi

I am trying to send a message to all the clients connected to a TIdTCPServerSocket component. I have tried the following:
 for(int k = 0; k < ServerSocket->Bindings->Count; k++)
 {
  ServerSocket->Bindings->Items[k]->Send("XXXXX", 5, 0);
 }
The code compiles and executes without error but the client does not receive the message.
Any ideas?

Regards
Alfred
Technical Details
Message-ID: <40e411f8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.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,8030c97762119088,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Alfred Thomas" <alfred@fischerint.co.za>
Sender: "Alfred Thomas" <alfred@fischerint.co.za>
Reply-To: "Alfred Thomas" <alfred@fischerint.co.za>
Subject: Send message to all TIdServerSocket connections
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 196.25.217.126     
X-Forwarded-For: 192.96.150.189
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40e411f8$1@newsgroups.borland.com>
Date: 1 Jul 2004 06:30:32 -0700
X-Trace: newsgroups.borland.com 1088688632 207.105.83.66 (1 Jul 2004 06:30:32 -0700)
Lines: 13
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail