org.opensubsystems.core.util
Class NetUtils

java.lang.Object
  extended by org.opensubsystems.core.util.NetUtils

public final class NetUtils
extends java.lang.Object

Class containing methods for working with network

Version:
$Id: NetUtils.java,v 1.4 2007/01/07 06:14:00 bastafidli Exp $
Author:
Julo Legeny
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Method Summary
static java.lang.String getServerIPAddress()
          Get textual representation just of the server machine IP address.
static java.lang.String getServerIPAddressAndName()
          Get textual representation of the server machine IP address together with its name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getServerIPAddress

public static java.lang.String getServerIPAddress()
                                           throws OSSException
Get textual representation just of the server machine IP address.

Returns:
strAddress - IP address of the server
Throws:
OSSException - - an error occured while getting server IP address

getServerIPAddressAndName

public static java.lang.String getServerIPAddressAndName()
                                                  throws OSSException
Get textual representation of the server machine IP address together with its name.

Returns:
strAddress - IP address of the server
Throws:
OSSException - - an error occured while getting server IP address


Copyright © 2003 - 2006 OpenSubsystems s.r.o.