🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1208

Re: About TIdTCPClient receive buffer...

#1208
From: Remy Lebeau (TeamB)
Date: Thu, 01 Mar 2007 16:05
18 lines
1483 bytes
"Umberto Spagnoli" <jumby@tiscali.it> wrote in message
news:45e6eac2$1@newsgroups.borland.com...

> How can I know how many bytes I currently received in the
> input buffer of my TIdTCPClient component without reading
> the buffer?

TIdTCPClient derives from TIdTCPConnection, which has an InputBuffer
property, which in turn has a Size property.

Note that data is not put into the InputBuffer until you call one of
TIdTCPConnection's reading methods first.  If you want to know how
many bytes are pending in the socket's internal receive buffer, then
you have to use the ioctlsocket() API function directly for that.


Gambit
Technical Details
Message-ID: <45e71374@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45e6eac2$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6320376fc8e5cd11
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <45e6eac2$1@newsgroups.borland.com>
Subject: Re: About TIdTCPClient receive buffer...
Date: Thu, 1 Mar 2007 08:05:58 -0800
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45e71374@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172771700 75.83.34.171 (1 Mar 2007 09:55:00 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail