views:

90

answers:

1
+2  Q: 

PCap performance

Which c-sharp wrapper of Pcap is fastest? How fast is PCap compared to using sockets?

A: 

I believe Pcap.Net is faster than other wrappers since it uses C++/CLI wrapping instead of PInvoke.

In general I've never encountered performance issues with WinPcap (it also depends how you use it).

brickner
If I may ask, what do you use pcap for? is it network sniffing on data exchange between user applications? How do you find pcap performance compared with regular socket usage?
bsobaid
I use WinPcap for general packet sniffing. I haven't compared WinPcap with regular socket usage, but I'm not sure how you can sniff packets that aren't intended for the computer by using regular sockets.
brickner
Thanks, I am actually planning to use it for regular application data transfer which I am currently doing over socket with the hope of getting lower latency, but what I have read so far, it is only appropriate for packet sniffing.
bsobaid