🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

indy 9 and TidTcpServer

#2148
From: fabrice
Date: Tue, 01 Aug 2006 09:37
24 lines
1350 bytes
Hello



I use indy 9 and TidTcpServer component.



Before to read using "AThread->Connection->Socket->Recv(ptr,len)" with ptr a 
pointer to a buffer and len the number of bytes to read from the connection. 
How can I know exactly the bytes that has been received in the socket ?



I would like to pass the good value in "len" and adjust the buffer size of 
the receipt buffer



Is a method like ReceiveLength() exist with TidTcpServer?



Thanks for the help !
Technical Details
Message-ID: <44cf20f5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f38499e0180289f2,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "fabrice" <f.marcantuoni@splin-rd.com>
From: "fabrice" <f.marcantuoni@splin-rd.com>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: indy 9 and TidTcpServer 
Date: Tue, 1 Aug 2006 11:37:56 +0200
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869
NNTP-Posting-Host: 194.78.199.158
Message-ID: <44cf20f5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1154425077 194.78.199.158 (1 Aug 2006 02:37:57 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail