|Subject:||Re: Event when data arrived or server has disconnected|
|Posted by:||Remy Lebeau (TeamB) (gambit…@yahoo.com)|
|Date:||Mon, 1 Sep 2003|
"glup" <firstname.lastname@example.org> wrote in message
> How could my client get a in-time notification when
> a) the server has send data ("new data available")
There is no such event in Indy. Clients need to poll the socket
periodically to know if data arrives.
> b) the server has disconnected
There is not specific event for that. Indy should throw an exception the
next time you try to use the socket. Otherwise, call the
CheckForDisconnect() method periodically.
> I know delphi uses blocking sockets
Delphi, no. Indy, yes.
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/03
Event when data arrived or server has disconnected posted by glup on Mon, 1 Sep 2003