Click to See Complete Forum and Search --> : Creating a network usage and monitor program


mrhicks
January 6th, 2003, 06:59 PM
Hello all,

For my first real C# program I would like to create a Network usage and monitor program. Something similar to AnalogX's NetStat Live. The program shows the current data throughput and a running total of the network connect. Once this is done I would like to add additional logic to log all network traffic ( the process, port, destination ). Then eventually have the a mini firewall type program that I can set up rules and allow access depending upon those rules.

So my question is this possible with C# and the CLR? I would eventually like to have something like


+-----+ +-----------+ +--------------------------------+
| NIC | <-> | MyProgram | <-> | Process Wanting Network Access |
+-----+ +-----------+ +--------------------------------+


Do I have to create a driver for this? is there any sample/example code? Are there any books on this type of programming? I have found some networking programming books, but it really doesn't go into this type of programming.

After installing Output Firewall I was impressed on how easy it is to view, configure, maintain and set up rules that I would like to try to make something that is freeware or open source. I guess other question would be, would this be better to code in C++ than C#? Any thoughts? Thanks for the any help as it is really appreciated.

Mark

pareshgh
January 6th, 2003, 07:14 PM
this is typical network type TCP/IP proxy based application. which is possible in C#. since if you are going multiple platforms you might need help oF NFS protocol or study NIFS. you might have to take help if RPC library which were originally written in C++.

for books. we have already discussed about book in this forum.
www.gotdotnet.com has more ...

search MSDN library for Network components to startwith.

eventually you will be able to find it from there.

there are proxy interfaces in C# you could look on that. System.Net is your next bet !!!

all the best,
- Paresh