🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WSAGetLastError return always 6

#1197
From: Remy Lebeau (TeamB)
Date: Tue, 27 Feb 2007 22:29
29 lines
2277 bytes
"Eduardo Jauch" <eduardo.jauch@gmail.com> wrote in message
news:45e4a68c$1@newsgroups.borland.com...

> I'm not readind the chunk length. But this is because the char[]
> where I store the page is far bigger than the page I receive...

Doesn't matter.  You still have to process the chunks properly.  The
way you are reading the data, you are leaving all of that chunk
information inside your buffer.  You will have to strip off all of
that info anyway when you go to process the contents of the downloaded
data later on.  If you process the chunks while they are downloading,
as described earlier, then they won't be in your buffer at all when it
comes time to process it.

> but to do this is time consuming.

Not as much as you think.  Besides, you are going to have to take the
time to process the chunk info anyway, so you may as well do it as
soon as they arrive.

> I first do a code that does something similarly... But the "speed"
was
> slower that if I "force" to do like I'm doing now :)

You probably did not optimize the code once it was running.


Gambit
Technical Details
Message-ID: <45e4b0c8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45e24baa@newsgroups.borland.com> <45e31e54$1@newsgroups.borland.com> <45e34585$1@newsgroups.borland.com> <45e358b3$1@newsgroups.borland.com> <45e380bc@newsgroups.borland.com> <45e38fa2$1@newsgroups.borland.com> <45e3a6cf@newsgroups.borland.com> <45e3d748@newsgroups.borland.com> <45e4284e$1@newsgroups.borland.com> <45e47101$1@newsgroups.borland.com> <45e4a68c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ead06e5a7c488245
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: <45e24baa@newsgroups.borland.com> <45e31e54$1@newsgroups.borland.com> <45e34585$1@newsgroups.borland.com> <45e358b3$1@newsgroups.borland.com> <45e380bc@newsgroups.borland.com> <45e38fa2$1@newsgroups.borland.com> <45e3a6cf@newsgroups.borland.com> <45e3d748@newsgroups.borland.com> <45e4284e$1@newsgroups.borland.com> <45e47101$1@newsgroups.borland.com> <45e4a68c$1@newsgroups.borland.com>
Subject: Re: WSAGetLastError return always 6
Date: Tue, 27 Feb 2007 14:29:35 -0800
Lines: 31
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: <45e4b0c8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172615368 75.83.34.171 (27 Feb 2007 14:29:28 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail