Package net.simplace.core.service
Class NetworkHelper
java.lang.Object
net.simplace.core.service.NetworkHelper
- Author:
- Andreas Enders
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidrequestSimplaceServerState(InetSocketAddress inetSocketAddress) static final List<InetSocketAddress>scanPortOpened(Integer[] aPortsToScan, String IpRangeToBeScanned)
-
Method Details
-
main
- Parameters:
args-- Throws:
Exception
-
scanPortOpened
public static final List<InetSocketAddress> scanPortOpened(Integer[] aPortsToScan, String IpRangeToBeScanned) throws UnknownHostException, SocketException - Parameters:
aPortsToScan-IpRangeToBeScanned- in format xxx.xxx.xxx.xxx/yy, if empty localhost will be requested- Returns:
- a list of InetAdresses having one requested port opened.
- Throws:
UnknownHostExceptionSocketException
-
requestSimplaceServerState
public static HashMap<String,Object> requestSimplaceServerState(InetSocketAddress inetSocketAddress)
-