Re: Network speed
From: Justin Rogers (Justin_at_games4dotnet.com)
Date: 02/18/04
- Next message: Eric B: "Ever used a infragistic ultraToolbarsManager in a MDI child window ?"
- Previous message: Jon Skeet [C# MVP]: "Re: Thread safety of readonly members"
- In reply to: Abubakar: "Network speed"
- Next in thread: Abubakar: "Re: Network speed"
- Reply: Abubakar: "Re: Network speed"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 18 Feb 2004 00:23:07 -0800
They find the numbers through inspection of an actual transfer. Time how much
data you receive over time and average
this out to get a per second metric. The bytes per pass metric you are speaking
of really doesn't matter. If you are doing
a resume feature you simply need to allocate a blank file of the end size, and
then mark in the file the location where the
transfer was stopped so you can later seek and resume from there.
This isn't an easy application to write. You'll need to do some reading and
break down some of your misconceptions. For
instance, I can achieve the same speed by writing 10 10k buffers to the network
stream as I can for writing 1 100k buffer.
You see having your buffer the same size as the connection speed isn't how you
saturate a connection. You simply write
buffers as quickly as you can and the size of them really doesn't matter (okay,
size will matter at some point and you'll need
to tune your application to find the optimum buffer size, if you search on the
web, some people have already done this for
you and you can use their numbers).
-- Justin Rogers DigiTec Web Consultants, LLC. Blog: http://weblogs.asp.net/justin_rogers "Abubakar" <emailallrise@yahoo.com> wrote in message news:uI3iqWe9DHA.440@TK2MSFTNGP10.phx.gbl... > Hi, > I have a small sockets application and I'm adding a feature in it to > transfer files. Since I also want to give it a transfer resume feature so > this means I'll be transfering in specific bytes per pass. I want to know > the local LAN or, if or internet, internet connection speed like 5k/s or > 50k/s (as we see in the downloads of IE) so that I can pass that amount of > data in write method of networkstream object. So how do I get the speed > figure? > >
- Next message: Eric B: "Ever used a infragistic ultraToolbarsManager in a MDI child window ?"
- Previous message: Jon Skeet [C# MVP]: "Re: Thread safety of readonly members"
- In reply to: Abubakar: "Network speed"
- Next in thread: Abubakar: "Re: Network speed"
- Reply: Abubakar: "Re: Network speed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|