🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How many IdTCPClient connect to IdTCPServer?

#4899
From: Don Siders
Date: Sun, 05 Dec 2004 21:06
13 lines
1481 bytes
> How can I know...how many IdTCPClient connect to IdTCPServer?

Depends on the version of Indy you're using.

Indy 9 has a Thread property, and Indy 10 has a Contexts property.  Located in TIdTCPServer.  

These are TThreadList properties, so you must call LockList before you can access any items or even determine the length of the list.  Make sure you call UnlockList, or the sever will not be able to accept new connections, etc.

hth...
Technical Details
Message-ID: <41b377e5@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41b31844@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,4f1d9596b820e6f1
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Don Siders" <nanook@joesgarage.org>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41b31844@newsgroups.borland.com>
Subject: Re: How many IdTCPClient connect to IdTCPServer?
Date: Sun, 5 Dec 2004 16:06:52 -0500
Lines: 13
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 24.241.192.135
Message-ID: <41b377e5@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1102280677 24.241.192.135 (5 Dec 2004 13:04:37 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail