Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: How to read a single character with timeout using Indy 9?

www.cryer.info
Managed Newsgroup Archive

Re: How to read a single character with timeout using Indy 9?

Subject:Re: How to read a single character with timeout using Indy 9?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Fri, 23 Mar 2007 09:27:26

"Mark" <mkhuebner@gmail.com> wrote in message
news:1174319489.185967.227420@n59g2000hsh.googlegroups.com...

> Unfortunately, ReadChar does not allow for timeouts

Yes, it does.  All of the reading methods support a timeout via the
ReadTimeout property.

Alternatively, call ReadFromStack() first, and then call ReadChar()
only if ReadFromStack() returns > 0.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive