Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to Retrieve TCP/UDP Statistics using System.Net.NetworkInformation

How to Retrieve TCP/UDP Statistics using System.Net.NetworkInformation

Scheduled Pinned Locked Moved Visual Basic
csharpcomhelptutorial
8 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    that_dude_tj
    wrote on last edited by
    #1

    I went to the msdn website:http://msdn.microsoft.com/en-us/library/system.net.networkinformation.aspx looking for help writing the code in VB.

    D 1 Reply Last reply
    0
    • T that_dude_tj

      I went to the msdn website:http://msdn.microsoft.com/en-us/library/system.net.networkinformation.aspx looking for help writing the code in VB.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      What statistics are you looking for?? Did you look at the code samples for each class, such as the IpGlobalStatistics??

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007, 2008
      But no longer in 2009...

      T 2 Replies Last reply
      0
      • D Dave Kreskowiak

        What statistics are you looking for?? Did you look at the code samples for each class, such as the IpGlobalStatistics??

        A guide to posting questions on CodeProject[^]
        Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
             2006, 2007, 2008
        But no longer in 2009...

        T Offline
        T Offline
        that_dude_tj
        wrote on last edited by
        #3

        I looked at the IPGlobalProperties class but i think its too broad. I am looking to view the SYN -ACK request packets in the TCP backlog queue and looking to view the amounts of UDP packets.

        D 1 Reply Last reply
        0
        • D Dave Kreskowiak

          What statistics are you looking for?? Did you look at the code samples for each class, such as the IpGlobalStatistics??

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          T Offline
          T Offline
          that_dude_tj
          wrote on last edited by
          #4

          Im looking at TcpStatistics/UDP Class but not sure if it will specify SYN/ACK or UDP packets

          1 Reply Last reply
          0
          • T that_dude_tj

            I looked at the IPGlobalProperties class but i think its too broad. I am looking to view the SYN -ACK request packets in the TCP backlog queue and looking to view the amounts of UDP packets.

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            The stats you want are not kept in those classes, nor are they, if my research is correct, kept in the underlying network layers. I think you may be forced to write your own packet filter and generate these stats yourself by inspecting individual packets.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            T 1 Reply Last reply
            0
            • D Dave Kreskowiak

              The stats you want are not kept in those classes, nor are they, if my research is correct, kept in the underlying network layers. I think you may be forced to write your own packet filter and generate these stats yourself by inspecting individual packets.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008
              But no longer in 2009...

              T Offline
              T Offline
              that_dude_tj
              wrote on last edited by
              #6

              Ooo ok thanks, do you have any suggested readings that can guide me to creating my own packet filter

              D 1 Reply Last reply
              0
              • T that_dude_tj

                Ooo ok thanks, do you have any suggested readings that can guide me to creating my own packet filter

                D Offline
                D Offline
                Dave Kreskowiak
                wrote on last edited by
                #7

                Not really. But you can start by Googling for "WinPCap".

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008
                But no longer in 2009...

                T 1 Reply Last reply
                0
                • D Dave Kreskowiak

                  Not really. But you can start by Googling for "WinPCap".

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007, 2008
                  But no longer in 2009...

                  T Offline
                  T Offline
                  that_dude_tj
                  wrote on last edited by
                  #8

                  Thanks

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups