Question: I get the following error when connecting XCode to a repository on GoogleCode.com

```
Error: 175002 (RA layer request failed) Description: Server sent unexpected return value (405 Method Not Allowed) in response to OPTIONS request for 'http://touchcode.googlecode.com/hg' 

```

Has anyone see this before and how do I resolve it?

Answer: 
You could cheat this easily:

1. Create a process using cmd.exe
2. Call the command `netstat -e 10' (for 10 seconds)
3. Pipe the output back to your application as an input stream
4. Parse the input stream
5. If the user decides to quit the program send a ctrl-c break sequence to the process.

What do you think?
Your best bet is to use performance counters or WMI and do sampling at a frequency that is comfortable for you. IF you are trying to get something similar to the byte counts on the network card properties those counters are in the performance counter set.

If you are trying to also measure all devices (USB, etc) you will probably need to write your own customer drivers to intercept data transfer events.