Class WesUtils
java.lang.Object
org.rockhopper.smarthome.wes.jwes.discovery.WesUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets every IPv4 Address on each Interface except the loopback The Address format is ip/subnetstatic Stringstatic LinkedHashSet<String> getNetworkIPs(TreeSet<String> interfaceIPs) Takes the interfaceIPs and fetches every IP which can be assigned on their networkstatic Booleanstatic booleanstatic booleannativePing(String hostname, int port, int timeout)
-
Constructor Details
-
WesUtils
public WesUtils()
-
-
Method Details
-
getInterfaceIPs
Gets every IPv4 Address on each Interface except the loopback The Address format is ip/subnet- Returns:
- The collected IPv4 Addresses
-
getNetworkIPs
Takes the interfaceIPs and fetches every IP which can be assigned on their network- Parameters:
interfaceIPs- The IPs which are assigned to the Network Interfaces- Returns:
- Every single IP which can be assigned on the Networks the computer is connected to
-
nativePing
public static boolean nativePing(String hostname, int port, int timeout) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
httpPing
-
getMac
-
isValid_WES_MACAddress
-