Re: AV in TIdThreadComponent

Giganews Newsgroups
Subject: Re: AV in TIdThreadComponent
Posted by:  Ben Taylor (to_b…@yahoo.com)
Date: Tue, 19 Apr 2005

Is there a way to determine if there is data ready in the
connection without extracting them from the InputBuffer?
I found That ReadFromStack would do the job great.
But then when i saw the help for readbuffer it says that
it also calls readfromstack to determine the size of the inputbuffer.
How can i solve this problem?

I cannot use ReadBuffer in the first place because
there is no certainty of what the data will be.
i can maybe want to read an integer or a string or
other data.

What should i use to be sure?
if i call ReadFromStack and then call ReadBuffer
why won't readbuffer try to check the inputbuffer
before calling ReadFromStack?

Replies

In response to

AV in TIdThreadComponent posted by Anders Gustavsson on Mon, 18 Apr 2005