CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2000
    Location
    CA, USA
    Posts
    88

    Creating a network usage and monitor program

    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

    Code:
    +-----+     +-----------+     +--------------------------------+
    | 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

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured