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?
There are several performance counters that give you basic numbers on throughput on the network interface card. Start by taking a look at them with Perfmon.exe, you'll see their category, name and instance name. Those same numbers are available with the .NET PerformanceCounter class.

Using them to measure bandwidth is a rather tricky, you are more likely to measure the bandwidth of the server you are talking to, combined with the dozen or so routers that pipe the IP message to your machine.