nl.toolforge.core.util.net
Class Ping

java.lang.Object
  extended bynl.toolforge.core.util.net.Ping

public final class Ping
extends java.lang.Object

The good old ping command in Java. Probably a copy of what exists elsewhere, but since I would have expect this one in the JDK ... Then, it took me 15 minutes to build this.

Version:
$Id: Ping.java,v 1.1 2004/09/06 20:06:08 asmedes Exp $
Author:
D.A. Smedes

Method Summary
static boolean ping(java.lang.String host, int port, int timeOutInMillis)
          Check if port port is reachable on host host within the next timeOutInMillis milliseconds, or else the check failed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

ping

public static boolean ping(java.lang.String host,
                           int port,
                           int timeOutInMillis)
Check if port port is reachable on host host within the next timeOutInMillis milliseconds, or else the check failed.



Copyright © 2002-2006 Toolforge. All Rights Reserved.