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#
  4. Winpcap Wpcap.dll packet.all

Winpcap Wpcap.dll packet.all

Scheduled Pinned Locked Moved C#
questionhelp
3 Posts 3 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.
  • A Offline
    A Offline
    Archy_Yu
    wrote on last edited by
    #1

    what is their functions? I am completely confused. When sending arp message in LAN,Winpcap is very nessecery? What is about it? any one help me? thanks in advance!

    D 1 Reply Last reply
    0
    • A Archy_Yu

      what is their functions? I am completely confused. When sending arp message in LAN,Winpcap is very nessecery? What is about it? any one help me? thanks in advance!

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      I've had a look at the documentation on their site, and it appears to be all C++ not C#. You will need to write a wrapper and use PInvoke to call the functions and write equivalent data structures etc so that data can be marshalled correctly, unless there is already a .NET wrapper for it such as this[^].

      Dave
      Generic BackgroundWorker - My latest article!
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Why are you using VB6? Do you hate yourself? (Christian Graus)

      B 1 Reply Last reply
      0
      • D DaveyM69

        I've had a look at the documentation on their site, and it appears to be all C++ not C#. You will need to write a wrapper and use PInvoke to call the functions and write equivalent data structures etc so that data can be marshalled correctly, unless there is already a .NET wrapper for it such as this[^].

        Dave
        Generic BackgroundWorker - My latest article!
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        B Offline
        B Offline
        brickner
        wrote on last edited by
        #3

        There is a nice WinPcap wrapper you should try to use. It uses C++/CLI instead of PInvoke, which has much better performance. It is called Pcap.Net and available here: http://pcapdotnet.codeplex.com

        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