pcap.net

Benchmark for a .NET WinPcap wrapper

I'm developing a .NET wrapper for WinPcap called Pcap.Net. I'm trying to make sure this wrapper has high performance and I want to compare it to WinPcap and to other .net wrappers for WinPcap. The features I want to profile are: WinPcap native features (sending packets in different ways, receiving packets in different ways...) Interp...

Should I use .NET 4.0 Tasks in a library?

I'm writing a .NET 4.0 library that should be efficient and simple to use. The library is used by referencing it and using its different classes. Should I use .NET 4.0 Tasks tot make things more efficient internally? I fear that it might make the usage of the library more complex and limited since the users might want to decide for the...

how to check for BackgroundWorker.CancellationPending when my thread has called another?

How should I check for a CancellationPending within a BackgroundWorker DoWork method, when within this method I call off to a Pcap.Net packet capture routine, which responses via a callback. The two options I can think of is: a) write a loop at the bottom of the DoWork method to continually check for CancellationPending b) put the che...

Capturing DNS responses with PCap.Net???

Hi, Q1 - Is it possible to capture DNS request/responses with the library? Q2 - If yes, once I have the packet does anyone have any sample code that shows how I could extract the fields from the DNS response? In particular the IP address that DNS resolved for the given DNS name provided in particular. ...

Incorrect reference PcapDotNet.?.dll

Hello I try to use PcapDotNet dll but I can't add reference to my project. It doesn't matter which dll it is. PcapDotNet.Core.dll, PcapDotNet.Base.dll etc. I have yellow exclamation mark near this reference and can't use any methods from this dll. Ofc "using PcapDotNet.Core;" is underlined too and compiler shows me: "The type or namespac...