Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Measuring Download Bandwidth

Measuring Download Bandwidth

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesql-servercom
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Majid Shahabfar
    wrote on last edited by
    #1

    I have developed a subscription based web application using ASP.NET (C#). Applicaiton is used to give user accounts to different customers to download some files from website. I want to measure the bandwidth used by each customer account during downloading. I'm using SQL Server 2008 at the backend where the user account information as well as download history and total download size are maintained on it. Infact I want to calculate the bandwidth used by each customer during any download file process. Each customer is assigned certain amount of bandwidth. I want to calculate this during the session of a customer, not at the website level. Something exactly like "sharing-hub.com" website. Any comments and suggestions are welcomed.

    B S 2 Replies Last reply
    0
    • M Majid Shahabfar

      I have developed a subscription based web application using ASP.NET (C#). Applicaiton is used to give user accounts to different customers to download some files from website. I want to measure the bandwidth used by each customer account during downloading. I'm using SQL Server 2008 at the backend where the user account information as well as download history and total download size are maintained on it. Infact I want to calculate the bandwidth used by each customer during any download file process. Each customer is assigned certain amount of bandwidth. I want to calculate this during the session of a customer, not at the website level. Something exactly like "sharing-hub.com" website. Any comments and suggestions are welcomed.

      B Offline
      B Offline
      Bernhard Hiller
      wrote on last edited by
      #2

      Bandwidth is downloaded amount of data divided by the time need to do so. You only need to additionally record download start and download end time.

      M 1 Reply Last reply
      0
      • B Bernhard Hiller

        Bandwidth is downloaded amount of data divided by the time need to do so. You only need to additionally record download start and download end time.

        M Offline
        M Offline
        Majid Shahabfar
        wrote on last edited by
        #3

        I need to retrieve the download size during downloading a file.

        1 Reply Last reply
        0
        • M Majid Shahabfar

          I have developed a subscription based web application using ASP.NET (C#). Applicaiton is used to give user accounts to different customers to download some files from website. I want to measure the bandwidth used by each customer account during downloading. I'm using SQL Server 2008 at the backend where the user account information as well as download history and total download size are maintained on it. Infact I want to calculate the bandwidth used by each customer during any download file process. Each customer is assigned certain amount of bandwidth. I want to calculate this during the session of a customer, not at the website level. Something exactly like "sharing-hub.com" website. Any comments and suggestions are welcomed.

          S Offline
          S Offline
          satalaj
          wrote on last edited by
          #4

          Hi, You need to use handler to process file download request. When client request the file download, file handler will search the file and calculate it's size. You can store the file size downloaded against the user and restrict user from further downloading if allowed quota reached for the day or week etc.. File handler

          M 1 Reply Last reply
          0
          • S satalaj

            Hi, You need to use handler to process file download request. When client request the file download, file handler will search the file and calculate it's size. You can store the file size downloaded against the user and restrict user from further downloading if allowed quota reached for the day or week etc.. File handler

            M Offline
            M Offline
            Majid Shahabfar
            wrote on last edited by
            #5

            Thanks Satalaj, Would you please tell me more about your solution any code snippet or samples I mean. BTW your link couldn't be open.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups