Package net.simplace.core.service
Klasse NetworkHelper
java.lang.Object
net.simplace.core.service.NetworkHelper
- Autor:
- Andreas Enders
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic voidrequestSimplaceServerState(InetSocketAddress inetSocketAddress) static final List<InetSocketAddress> scanPortOpened(Integer[] aPortsToScan, String IpRangeToBeScanned)
-
Methodendetails
-
main
- Parameter:
args-- Löst aus:
Exception
-
scanPortOpened
public static final List<InetSocketAddress> scanPortOpened(Integer[] aPortsToScan, String IpRangeToBeScanned) throws UnknownHostException, SocketException - Parameter:
aPortsToScan-IpRangeToBeScanned- in format xxx.xxx.xxx.xxx/yy, if empty localhost will be requested- Gibt zurück:
- a list of InetAdresses having one requested port opened.
- Löst aus:
UnknownHostExceptionSocketException
-
requestSimplaceServerState
public static HashMap<String,Object> requestSimplaceServerState(InetSocketAddress inetSocketAddress)
-