Article View: borland.public.cppbuilder.internet.socket
Article #1329Doubt... WinInet versus Direct Socket code...
From: Eduardo Jauch
Date: Thu, 22 Feb 2007 01:45
Date: Thu, 22 Feb 2007 01:45
28 lines
2089 bytes
2089 bytes
Hi! :) I have an app that use an component (WinHTTP) that is based on WinInet. I'm use BCB 6 and in order to use WinHTTP I must add Wininet.lib to the project. My app on windows XP instaled on a Athlon XP 2600+ (1,6 GHz) with 1GB DDR 333MHz can access a specific page on net with get with times from 600 to 800 ms (sometimes take up to 6000 ms, but not usualy). On another computer using the same XP installation, but an Athlon 64 3500+ (2,6 GHz) with 1GB DDR2 (500MHz +-), the range change to 400 to 600 ms. if the change in hardware causes this behaviour, I was thinking if it's possible to turn the code fastest, using direct socket programing (Winsock 2.0 or other lib)...? Anyone have some experience with this matters? Another question is: if I do a code more fast (using sockets problably), that can retrieve the pages more times per second (actually i can retrieve only a page each 0.6-0.8 seconds), and thinking that the server can give me responses at this rate (I think it can...), there some problem? I mean, with the servers tecnology today, can the server stop sendind responses because I'm asking them too fast, even for a short while? Thanks for any adivese :)
Technical Details
Message-ID:
<45dcf5a6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.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-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,d736eb647f57a77f,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 21 Feb 2007 23:45:55 -0200 From: Eduardo Jauch <eduardo.jauch@gmail.com> User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Doubt... WinInet versus Direct Socket code... Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 201.89.71.229 Message-ID: <45dcf5a6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172108710 201.89.71.229 (21 Feb 2007 17:45:10 -0800) Lines: 28 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.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