public class NetworkUtilities extends Object
Constructor and Description |
---|
NetworkUtilities() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkConnection()
Checks if a internet connection can be established
|
static boolean |
checkConnection(URL url)
Checks if a internet connection to a specific Server can be established
|
static int |
getTimeDifferenceSeconds(String serverName)
get the time difference from a NTP server
|
public static boolean checkConnection()
public static boolean checkConnection(URL url)
url
- check this Serverpublic static int getTimeDifferenceSeconds(String serverName)
serverName
- TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)