Ejemplo n.º 1
0
        //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);
        }
Ejemplo n.º 2
0
 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();
     }
 }
Ejemplo n.º 3
0
 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();
         }
     }
 }
Ejemplo n.º 4
0
 //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;
 }
Ejemplo n.º 5
0
 public static void Analyze(ReceivePackets receivePackets, string directory)
 {
     AnalyzeTcpStream tcpReconstruct = new AnalyzeTcpStream();
     tcpReconstruct._Analyze(receivePackets, directory);
 }
Ejemplo n.º 6
0
        public static void Analyze(ReceivePackets receivePackets, string directory)
        {
            AnalyzeTcpStream tcpReconstruct = new AnalyzeTcpStream();

            tcpReconstruct._Analyze(receivePackets, directory);
        }