public void StartCapture(PcapDotNet.Core.HandlePacket PacketHandler, LivePacketDevice device) { _device = device; StartCapture(PacketHandler); }
//functions public void StartCapture(PcapDotNet.Core.HandlePacket PacketHandler) { _packetHandler = PacketHandler; _bgWorker.DoWork += new DoWorkEventHandler(DoWork); _bgWorker.RunWorkerAsync(); }