Separating pattern collection and analysis into 2 different threads.
[pingpong.git] / Code / Projects / SmartPlugDetector / src / main / java / edu / uci / iotproject / Main.java
index d2867dfc0fd63c259c30eeea49ad036c50832120..e5a685f654fab5cee1caa9ab85c04a9e68298b4f 100644 (file)
@@ -35,8 +35,8 @@ public class Main {
         } catch (PcapNativeException pne) {
             handle = Pcaps.openOffline(fileName);
         }
-        FlowPatternFinder fpf = new FlowPatternFinder();
-        fpf.findFlowPattern(handle, FlowPattern.TP_LINK_LOCAL_ON);
+        FlowPatternFinder fpf = new FlowPatternFinder(handle, FlowPattern.TP_LINK_LOCAL_ON);
+        fpf.start();
 
         // ========================
     }