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
2010-07-08 20:27:26
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
2010-07-08 20:47:15
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
2010-07-09 07:18:43
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
2010-07-09 13:32:26