dioscuri.vnc
Class VNCUtil

java.lang.Object
  extended by dioscuri.vnc.VNCUtil

public class VNCUtil
extends java.lang.Object

Class holding static method helper

Author:
Gendo

Constructor Summary
VNCUtil()
           
 
Method Summary
static boolean available(int port)
          Checks to see if a specific port is available.
static java.lang.String getHostIP()
          Find the IP address of localhost.
static java.lang.String getHostName()
          Find the hostname of localhost.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VNCUtil

public VNCUtil()
Method Detail

getHostIP

public static java.lang.String getHostIP()
Find the IP address of localhost.

Returns:
the IP address of localhost.

getHostName

public static java.lang.String getHostName()
Find the hostname of localhost.

Returns:
the hostname of localhost.

available

public static boolean available(int port)
Checks to see if a specific port is available.

Parameters:
port - the port to check for availability Code from http://mina.apache.org/