Article View: borland.public.cppbuilder.internet.socket
Article #2134Re: TWinSocketStream::Read
From: SF
Date: Fri, 28 Jul 2006 06:50
Date: Fri, 28 Jul 2006 06:50
28 lines
1844 bytes
1844 bytes
> Ignore that. It doesn't matter what you set the Count to, as > long as you do > not set it to 0. Then once more I wonder why they write a so clear (but wrong) explanation in the help... maybe could it depend on the operating system? > Make sure that you are calling WaitForData() before > calling Read(). Of course, I do. > Then Read() will return however much data is actually > available, up to a maximum of your specified Count. And then > use the return > value to know how much was actually read. Exactly what I'm doing, but thanks for confirming that's the right way. >> Could a too low value of Count result in an overflow of >> the TCP/IP stack > > No. OK. Anyway, does the TCP window depend on how fast I read the data from the socket or is it a completely different layer? Thank you very much. Stefano.
Technical Details
Message-ID:
<44c9b42a@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44c866d6@newsgroups.borland.com> <44c8ece1$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,178c2a5464235f3f X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "SF" <invalid@NOSPAMinvalid.com> From: "SF" <invalid@NOSPAMinvalid.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <44c866d6@newsgroups.borland.com> <44c8ece1$1@newsgroups.borland.com> Subject: Re: TWinSocketStream::Read Date: Fri, 28 Jul 2006 08:50:55 +0200 Lines: 30 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 81.208.124.114 Message-ID: <44c9b42a@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154069546 81.208.124.114 (27 Jul 2006 23:52:26 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail