[mingw - C/C++] RE: socket - slow FTP download.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[mingw - C/C++] RE: socket - slow FTP download.


Read and respond to this message at:
By: danielosmari

What do you mean by "clean the memory space"? You are just filling it with zeros.
Right after that you are filling it again with the bytes received in recv().
Of course it will slow down the loop, it does nothing but waste time writing
data that will be overwritten in the next instruction.

Also, you didn't specify what is "slow" for you. 1 MB/s? 10 MB/s? I noticed
that the plain BSD sockets emulation provided by Winsock can easily hit the
~2 MB/s limit on Win2k/XP if you are not careful enough. Are you sure the bottleneck
isn't in the server side?

You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:

SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
MinGW-users mailing list
[hidden email]

You may change your MinGW Account Options or unsubscribe at: