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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Getting the number of packets received / sent

Getting the number of packets received / sent

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
6 Posts 4 Posters 0 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.
  • N Offline
    N Offline
    Nikhil Wason
    wrote on last edited by
    #1

    I wish to write a program to get the number of bytes/packets being received / sent over an NIC (standard ethernet card). Are there any inbuilt functions / libraries in the standard c/c++ library to this? If not, are there any external libraries to do so? Nikhil

    T 1 Reply Last reply
    0
    • N Nikhil Wason

      I wish to write a program to get the number of bytes/packets being received / sent over an NIC (standard ethernet card). Are there any inbuilt functions / libraries in the standard c/c++ library to this? If not, are there any external libraries to do so? Nikhil

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      Nikhil Wason wrote: Are there any inbuilt functions / libraries in the standard c/c++ library to this? Yes, loop for IpHelper Api's Nikhil Wason wrote: are there any external libraries to do so? Sure, here it is http://www.winpcap.org/[^]

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta

      C 1 Reply Last reply
      0
      • T ThatsAlok

        Nikhil Wason wrote: Are there any inbuilt functions / libraries in the standard c/c++ library to this? Yes, loop for IpHelper Api's Nikhil Wason wrote: are there any external libraries to do so? Sure, here it is http://www.winpcap.org/[^]

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta

        C Offline
        C Offline
        Cedric Moonen
        wrote on last edited by
        #3

        Jesus ! You seem very agile with your nose today :laugh:

        T 1 Reply Last reply
        0
        • C Cedric Moonen

          Jesus ! You seem very agile with your nose today :laugh:

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

          cedric moonen wrote: You seem very agile with your nose today Nope, As you have lost control, i started using my hand again :)

          "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

          cheers, Alok Gupta

          M 1 Reply Last reply
          0
          • T ThatsAlok

            cedric moonen wrote: You seem very agile with your nose today Nope, As you have lost control, i started using my hand again :)

            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            cheers, Alok Gupta

            M Offline
            M Offline
            MailtoGops
            wrote on last edited by
            #5

            Hi, You can also use WMI (Windows Management Intruments) objects for this monitoring. It provides all the features, in terms of objects. It is very is use and work.. Please check with MSDN with Win32_NetworkAdapterConfiguration section. IT will help you a lot.. Thanks & Regards Gopalakrishnan " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan

            T 1 Reply Last reply
            0
            • M MailtoGops

              Hi, You can also use WMI (Windows Management Intruments) objects for this monitoring. It provides all the features, in terms of objects. It is very is use and work.. Please check with MSDN with Win32_NetworkAdapterConfiguration section. IT will help you a lot.. Thanks & Regards Gopalakrishnan " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan

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

              HI Gopal, By Mistake, you a make post to wrong person!, Please post it again to right Guy. Thanks

              "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

              cheers, Alok Gupta

              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