Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: TIdTCPClient / how to implement something like OnReceiveData event?
| Subject: | Re: TIdTCPClient / how to implement something like OnReceiveData event? |
| Posted by: | "Mike Williams (TeamB)" (mlwi!!ia..@gmail!.com) |
| Date: | 30 Dec 2007 15:15:53 |
Unspoken wrote:
> For example I would like to know when the server responds to my
> command or when it sent a PING command. I am a beginner with Indy so
> any help would be nice.
Indy is by default a "blocking" library. This means that when the
client sends data to the server the client will automatically wait for
a response. If the response does not come soon enough, because the
timeout has been exceeded, you will get an exception. In many ways this
is far easier to program with than asynchronous code where an event is
fired when data becomes available.
--
-Mike (TeamB)