BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TIdTCP CurrentReadBuffer usage.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket)
View previous topic :: View next topic  
Author Message
qyte
Guest





PostPosted: Mon Apr 18, 2005 3:36 pm    Post subject: TIdTCP CurrentReadBuffer usage. Reply with quote



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





PostPosted: Tue Apr 19, 2005 3:52 pm    Post subject: Re: TIdTCP CurrentReadBuffer usage. Reply with quote



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





PostPosted: Tue Apr 19, 2005 4:46 pm    Post subject: Re: TIdTCP CurrentReadBuffer usage. Reply with quote




"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





PostPosted: Tue Apr 19, 2005 7:15 pm    Post subject: Re: TIdTCP CurrentReadBuffer usage. Reply with quote

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





PostPosted: Tue Apr 19, 2005 7:20 pm    Post subject: Re: TIdTCP CurrentReadBuffer usage. Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Internet Socket) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.