Eduardo Jauch Guest
|
Posted: Thu Feb 22, 2007 7:45 am Post subject: Doubt... WinInet versus Direct Socket code... |
|
|
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  |
|