Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: TIdTCPServer-Client Can I send to the client when I want to
| Subject: | Re: TIdTCPServer-Client Can I send to the client when I want to |
| Posted by: | "tony" (to..@yahoo.com) |
| Date: | 8 May 2006 09:01:55 |
Hi,
You need to have a read thread.
Basicly in this thread you have a connection sitting in a while loop
waiting for a read from the server. This works because you can still
write while sitting in the loop waiting for a read from the client.
the read thread just waits for commands from the server, for example
you could respond when a command of "incoming_popup" is recieved, then
you know that the client should then read a stream from the server that
will have the "popup" message.
Hope this helps, I am sure others will chime in soon.
Tony Caduto
AM Software Design
http://www.amsoftwaredesign.com
Home of PG Lightning Admin for Postgresql
--