| View previous topic :: View next topic |
| Author |
Message |
qyte Guest
|
Posted: Mon Apr 18, 2005 3:36 pm Post subject: TIdTCP CurrentReadBuffer usage. |
|
|
Does anyone know if the above function
removes the entry from the inputbuffer?
I want to use a function to determine if there are any data
incoming but i don't want to remove them from the
input buffer. will the above function do the job?
|
|
| Back to top |
|
 |
Omar Zelaya Guest
|
Posted: Tue Apr 19, 2005 3:52 pm Post subject: Re: TIdTCP CurrentReadBuffer usage. |
|
|
| Quote: | Does anyone know if the above function
removes the entry from the inputbuffer?
|
Yes it removes and returns all the data from the indy buffer.
| Quote: | I want to use a function to determine if there are any data
incoming but i don't want to remove them from the
input buffer. will the above function do the job?
|
You can use CurrentReadBufferSize, to get the current size of the indy read
buffer.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Apr 19, 2005 4:46 pm Post subject: Re: TIdTCP CurrentReadBuffer usage. |
|
|
"Omar Zelaya" <ozelaya2010 (AT) hotmail (DOT) com> wrote
| Quote: | You can use CurrentReadBufferSize
|
There is no such function. You would have to access the InputBuffer.Size
property directly.
Gambit
|
|
| Back to top |
|
 |
Omar Zelaya Guest
|
Posted: Tue Apr 19, 2005 7:15 pm Post subject: Re: TIdTCP CurrentReadBuffer usage. |
|
|
| Quote: | You can use CurrentReadBufferSize
There is no such function. You would have to access the InputBuffer.Size
property directly.
|
According to the C++Builder 6 help it does exists(at least on version 8 of
Indy).
TIdTCPConnection.CurrentReadBufferSize
Current size of the read buffer.
function CurrentReadBufferSize: integer;
Description
CurrentReadBufferSize is an Integer function the indicates the current size
of the read buffer for the peer connection.
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Apr 19, 2005 7:20 pm Post subject: Re: TIdTCP CurrentReadBuffer usage. |
|
|
"Omar Zelaya" <ozelaya2010 (AT) hotmail (DOT) com> wrote
| Quote: | According to the C++Builder 6 help it does exists(at least
on version 8 of Indy).
|
Indy 8 is VERY old and no longer supported. That function does not exist in
Indy 9 or 10.
Gambit
|
|
| Back to top |
|
 |
|