Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Jun : TIdTCPServer / Client - ThreadID
| Subject: | TIdTCPServer / Client - ThreadID |
| Posted by: | "Michael" (mtur28..@bigpond.net.au) |
| Date: | Sun, 10 Jun 2007 12:09:39 |
Is it possible send data from a server to a client via its ThreadID?
Why I ask is that, lets say, 100 clients are connected to a server and one
client needs to send data to another particular client without having to
send to all active clients. Each client that connects gets stored with a
username and ThreadID in an Array. I can easily search the Array for the
username and grab the ThreadID attached. So can I send data to that
ThreadID alone? The TIdTCPServer demo uses a TListbox and refers to its
ItemIndex regularly, which I am not using, so I am not quite sure how to
approach it.
Thx,
Mick