Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: How to check TIdPeerThread.Connection for input characters?
| Subject: | Re: How to check TIdPeerThread.Connection for input characters? |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 14 Mar 2007 14:41:03 |
"Mark" <mkhuebner@gmail.com> wrote in message
news:1173905994.103893.316040@e65g2000hsc.googlegroups.com...
> Is there any way to check and see if there are any available
> characters to be read from a TIdPeerThread.Connection?
Just read normally. Indy will block if no data is available yet.
> I don't want to execute a TIdPeerThread.Connection.ReadChar
> unless there are characters left in the input buffer to be read.
Why not?
> Does Indy's TIdPeerThread.Connection.ReadChar wait until
> there is a character that can be read from the input buffer
Yes.
> does it return with a null string if no input data is available?
No.
Gambit