//OnPacketReceivedDelegate onPacketReceived public static ReceivePackets CreateReceivePackets(string deviceName, string dumpFile = null, string filter = null) { ReceivePackets receivePackets = new ReceivePackets(deviceName); receivePackets.SetDumpFile(dumpFile); receivePackets.SetFilter(filter); //receivePackets.OnPacketReceived = onPacketReceived; return(receivePackets); }
private void _Analyze(ReceivePackets receivePackets, string directory) { _directory = directory; _ppacketManager = new PPacketManager(); try { receivePackets.Receive(PacketHandle); } finally { foreach(TcpStream tcpStream in _tcpStreamList.Values) tcpStream.Dispose(); } }
private void _Analyze(ReceivePackets receivePackets, string directory) { _directory = directory; _ppacketManager = new PPacketManager(); try { receivePackets.Receive(PacketHandle); } finally { foreach (TcpStream tcpStream in _tcpStreamList.Values) { tcpStream.Dispose(); } } }
//OnPacketReceivedDelegate onPacketReceived public static ReceivePackets CreateReceivePackets(string deviceName, string dumpFile = null, string filter = null) { ReceivePackets receivePackets = new ReceivePackets(deviceName); receivePackets.SetDumpFile(dumpFile); receivePackets.SetFilter(filter); //receivePackets.OnPacketReceived = onPacketReceived; return receivePackets; }
public static void Analyze(ReceivePackets receivePackets, string directory) { AnalyzeTcpStream tcpReconstruct = new AnalyzeTcpStream(); tcpReconstruct._Analyze(receivePackets, directory); }