adams.core.net
Class InetUtils
java.lang.Object
adams.core.net.InetUtils
public class InetUtils
- extends Object
Utility class for internet-related stuff.
- Version:
- $Revision: 4584 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
|
Method Summary |
static boolean |
hasConnection(String host,
int timeout)
Checks whether a connection is available to the specified host. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InetUtils
public InetUtils()
hasConnection
public static boolean hasConnection(String host,
int timeout)
- Checks whether a connection is available to the specified host.
- Parameters:
host - the host to pingtimeout - the timeout in milli-seconds
- Returns:
- true if successfully pinged
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.