Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 May : How to initiate a message from a TIdTCPServer to a client?
| Subject: | How to initiate a message from a TIdTCPServer to a client? |
| Posted by: | "Bo Berglund" (bo.berglu..@system3r.se) |
| Date: | Wed, 2 May 2007 21:50:39 |
Simplifying my question from the previous post I did:
Assuume that I have a server using the TIdTCPServer component that has
a connected client (one single client).
How can I send an asynchronous message from the server to the
connected client without blocking the complete server? This is not a
message in response to a client call, it is totally spontaneous and
asynchronous to the client.
Somehow I have to:
- Get hold of the AThread object for the client connection
- Tell the thread to send the message (a string)
- Do it such that only the client thread is blocked, not my main
server application.
Any guidelines?
I am using Delphi 7 Pro with the Indy 9 components that came with the
Delphi install.