views:

113

answers:

4

I have an update service that needs to pull data down from remote, however like Microsoft's BITS I'd like to do this when the user is idle and/or when their network utilisation is low so as to not impact on their experience.

What do I need to do or look at? Can anyone point me in the right direction on where to start with this and get the information I need?

A: 

Have you looked at MSDN where it describes how to use the BITS COM interfaces?

Another article here describing how to use BITS with .Net

Indeera
+2  A: 

Use official BITS wrapper http://msdn.microsoft.com/en-us/library/ms997639.aspx

aloneguid
A: 

How about SharpBITS.NET?

Mark Seemann
A: 

If you cannot use BITS because you want to be cross-platform, you're going to have trouble. Each OS will have different ways to find the current network usage, so you will have to write an interface class with implementations for each supported OS.

In Linux it seems to be the special file /proc/net/snmp. In Windows, BSD or OSX I have no idea. The netstat -s shell command seems to work on all of them, but the output format is different for each one.

Zan Lynx
Yes this is my fear :/
Lloyd