3

I am creating a web parsing application, to download some video files from user provided url, when the internet connection is idle.

How to detect idle state of the internet connection using dotnet framework C#?

Abhijeet
  • 13,562
  • 26
  • 94
  • 175
  • ASP.NET runs on the server, but you seem to be talking about client code. Which is it? I seem to have missed something. – Adam Sep 23 '12 at 10:36
  • @codesparkle I started with WebApplication in hope that this would provide better framework support for dealing with network protocols. However, Since I am trying to detect outgoing traffic from the machine. IMO it would not matter much whether it is WinForm App or WebForm App. What do you say ? – Abhijeet Sep 23 '12 at 10:47
  • 1
    possible duplicate of [Detecting network connection speed and bandwidth usage in C#](http://stackoverflow.com/questions/566139/detecting-network-connection-speed-and-bandwidth-usage-in-c-sharp) (Check the 1st and 2nd answer) – Nasreddine Sep 23 '12 at 10:55

1 Answers1

2

Instead of checking for idle connection you could use BITS via the SharpBITS.NET wrapper.

Albin Sunnanbo
  • 46,430
  • 8
  • 69
  • 108