From: Janus Varmarken Date: Tue, 24 Apr 2018 18:04:38 +0000 (-0700) Subject: add notes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c8c59ea37986428b0743ce9ad21c74a748071edc;p=pingpong.git add notes --- diff --git a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java index 903839d..3013665 100644 --- a/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java +++ b/Code/Projects/SmartPlugDetector/src/main/java/edu/uci/iotproject/Main.java @@ -1,5 +1,8 @@ package edu.uci.iotproject; +import java.util.List; +import java.util.Map; + /** * Entry point of the application. * @@ -11,4 +14,18 @@ public class Main { System.out.println("it works"); } + private String cloudIPAddress(String hostName) { + if (hostName.equals("events.tplinkra.com")) + return 205.251.203.26; + } + + // TODO move to separate class + // Add parameter that is the trace to be analyzed (most like the pcap library's representation of a flow) + public String findPattern(Map> hostnameToPacketLengths, String smartPlugIp) { + + // No difference, output "Complete match" + // If difference, output for each packet + return null; + } + }