paperlined.org
dev > programming_languages > csharp
document updated 16 years ago, on May 4, 2008
Certain things require WinPCap to be able to accomplish. Ways to use WinPcap with C#:

SharpPcap

  1. download the example source code
  2. copy Tamir.IPLib.SharpPcap.dll into your project's folder
  3. right-click project, "Add Reference", and add that .dll
  4. add using Tamir.IPLib; at the top of the appropriate modules
  5. test if everything is working by adding this, recompiling, and running:
    Console.WriteLine("SharpPcap version {0}", Tamir.IPLib.Version.GetVersionString());
  6. read the tutorial, and you should be able to get started writing very short programs
  7. SharpPcap's documentation is limited. You'll need to glean information from several sources: