c# - Reading From Multiple PcapFiles In One Instance of the program -
i using sharppcap wrapper winpcap , trying read multiple pcap files, consecutively, in 1 instance of program/ programme lifetime
foreach (filename in list) // pseudocode { icapturedevice device; seek { device = new sharppcap.libpcap.capturefilereaderdevice(filename); device.open(); } grab (exception e){} while ((device.getnextpacket()) != null) { // handle packet filename } device.close() }
it traverses first file right, tries parsing sec file, throws accessviolationexception.
i know can have 1 instance of programme 1 pcap file, handle files in 1 program. ideas?
if want read pcap files, i'd suggest own. format simple, , won't have problems external libraries.
http://wiki.wireshark.org/development/libpcapfileformat
c# winpcap sharppcap packetdotnet
No comments:
Post a Comment