Article View: borland.public.cppbuilder.internet.socket
Article #2132Re: TWinSocketStream::Read
From: Remy Lebeau (TeamB)
Date: Thu, 27 Jul 2006 16:40
Date: Thu, 27 Jul 2006 16:40
21 lines
1620 bytes
1620 bytes
"SF" <invalid@NOSPAMinvalid.com> wrote in message news:44c866d6@newsgroups.borland.com... > The help (BCB5) states to set the Count parameter of > TWinSocketStream::Read "fairly low, and make several calls > to Read, rather than fewer calls with a large value of Count". Ignore that. It doesn't matter what you set the Count to, as long as you do not set it to 0. Make sure that you are calling WaitForData() before calling Read(). 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. > Could a too low value of Count result in an overflow of > the TCP/IP stack No. Gambit
Technical Details
Message-ID:
<44c8ece1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44c866d6@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 From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <44c866d6@newsgroups.borland.com> Subject: Re: TWinSocketStream::Read Date: Thu, 27 Jul 2006 09:40:14 -0700 Lines: 23 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: 68.69.17.41 Message-ID: <44c8ece1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1154018529 68.69.17.41 (27 Jul 2006 09:42:09 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail