Hava a fast way to dump packet to file

May 5, 2014 at 8:22 AM
I use PacketDumpFile's dump method to dump packet to file, but it cost a lot of cpu usage(about 30% - 40%)
my idea is use fopen and fwrite instead of PacketDumpFile, but I can not call them in C#, could everyone give me an example show how to call them in C#
Coordinator
May 9, 2014 at 4:49 PM
Edited May 9, 2014 at 4:49 PM
Hi laoyang103,

Calling fopen() and fwrite() using C# isn't really related to Pcap.Net.
Googling this brought up this link with an answer: http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21509833.html

I hope this helps,

Boaz.