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